@@ -148,6 +148,8 @@ pub fn test_opts(config: &Config) -> test::TestOpts {
148
148
shuffle : false ,
149
149
#[ cfg( feature = "rustc" ) ]
150
150
shuffle_seed : None ,
151
+ #[ cfg( feature = "rustc" ) ]
152
+ fail_fast : false ,
151
153
}
152
154
}
153
155
@@ -287,6 +289,16 @@ pub fn make_test(config: &Config, testpaths: &TestPaths) -> test::TestDescAndFn
287
289
test_type : test:: TestType :: IntegrationTest ,
288
290
#[ cfg( feature = "rustc" ) ]
289
291
ignore_message : None ,
292
+ #[ cfg( feature = "rustc" ) ]
293
+ source_file : "" ,
294
+ #[ cfg( feature = "rustc" ) ]
295
+ start_line : 0 ,
296
+ #[ cfg( feature = "rustc" ) ]
297
+ start_col : 0 ,
298
+ #[ cfg( feature = "rustc" ) ]
299
+ end_line : 0 ,
300
+ #[ cfg( feature = "rustc" ) ]
301
+ end_col : 0 ,
290
302
} ,
291
303
testfn : make_test_closure ( config, testpaths) ,
292
304
}
@@ -319,8 +331,10 @@ pub fn make_test_closure(config: &Config, testpaths: &TestPaths) -> test::TestFn
319
331
let config = config. clone ( ) ;
320
332
let testpaths = testpaths. clone ( ) ;
321
333
test:: DynTestFn ( Box :: new ( move || {
322
- let config = config. clone ( ) ; // FIXME: why is this needed?
323
- runtest:: run ( config, & testpaths)
334
+ let result = runtest:: run ( config, & testpaths) ;
335
+ #[ cfg( feature = "rustc" ) ]
336
+ let result = Ok ( result) ;
337
+ result
324
338
} ) )
325
339
}
326
340
0 commit comments