@@ -14,6 +14,7 @@ fn make_test_description<R: Read>(
1414 config : & Config ,
1515 name : String ,
1616 path : & Utf8Path ,
17+ filterable_path : & Utf8Path ,
1718 src : R ,
1819 revision : Option < & str > ,
1920) -> CollectedTestDesc {
@@ -24,6 +25,7 @@ fn make_test_description<R: Read>(
2425 & cache,
2526 name,
2627 path,
28+ filterable_path,
2729 src,
2830 revision,
2931 & mut poisoned,
@@ -221,7 +223,7 @@ fn parse_rs(config: &Config, contents: &str) -> EarlyProps {
221223fn check_ignore ( config : & Config , contents : & str ) -> bool {
222224 let tn = String :: new ( ) ;
223225 let p = Utf8Path :: new ( "a.rs" ) ;
224- let d = make_test_description ( & config, tn, p, std:: io:: Cursor :: new ( contents) , None ) ;
226+ let d = make_test_description ( & config, tn, p, p , std:: io:: Cursor :: new ( contents) , None ) ;
225227 d. ignore
226228}
227229
@@ -231,9 +233,9 @@ fn should_fail() {
231233 let tn = String :: new ( ) ;
232234 let p = Utf8Path :: new ( "a.rs" ) ;
233235
234- let d = make_test_description ( & config, tn. clone ( ) , p, std:: io:: Cursor :: new ( "" ) , None ) ;
236+ let d = make_test_description ( & config, tn. clone ( ) , p, p , std:: io:: Cursor :: new ( "" ) , None ) ;
235237 assert_eq ! ( d. should_panic, ShouldPanic :: No ) ;
236- let d = make_test_description ( & config, tn, p, std:: io:: Cursor :: new ( "//@ should-fail" ) , None ) ;
238+ let d = make_test_description ( & config, tn, p, p , std:: io:: Cursor :: new ( "//@ should-fail" ) , None ) ;
237239 assert_eq ! ( d. should_panic, ShouldPanic :: Yes ) ;
238240}
239241
0 commit comments