@@ -14,6 +14,7 @@ fn make_test_description<R: Read>(
14
14
config : & Config ,
15
15
name : String ,
16
16
path : & Utf8Path ,
17
+ filterable_path : & Utf8Path ,
17
18
src : R ,
18
19
revision : Option < & str > ,
19
20
) -> CollectedTestDesc {
@@ -24,6 +25,7 @@ fn make_test_description<R: Read>(
24
25
& cache,
25
26
name,
26
27
path,
28
+ filterable_path,
27
29
src,
28
30
revision,
29
31
& mut poisoned,
@@ -221,7 +223,7 @@ fn parse_rs(config: &Config, contents: &str) -> EarlyProps {
221
223
fn check_ignore ( config : & Config , contents : & str ) -> bool {
222
224
let tn = String :: new ( ) ;
223
225
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 ) ;
225
227
d. ignore
226
228
}
227
229
@@ -231,9 +233,9 @@ fn should_fail() {
231
233
let tn = String :: new ( ) ;
232
234
let p = Utf8Path :: new ( "a.rs" ) ;
233
235
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 ) ;
235
237
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 ) ;
237
239
assert_eq ! ( d. should_panic, ShouldPanic :: Yes ) ;
238
240
}
239
241
0 commit comments