1111#![ crate_type = "lib" ]
1212
1313#![ cfg_attr( feature = "rustc" , feature( rustc_private) ) ]
14+ #![ cfg_attr( feature = "rustc" , feature( test) ) ]
1415
1516#![ deny( unused_imports) ]
1617
1718#[ cfg( feature = "rustc" ) ]
1819extern crate rustc;
1920
21+ #[ cfg( feature = "rustc" ) ]
22+ extern crate test;
23+
24+ #[ cfg( not( feature = "rustc" ) ) ]
25+ extern crate tester as test;
26+
2027#[ cfg( unix) ]
2128extern crate libc;
22- extern crate test;
2329
2430#[ cfg( feature = "tmp" ) ] extern crate tempfile;
2531
@@ -109,6 +115,10 @@ pub fn test_opts(config: &Config) -> test::TestOpts {
109115 test:: TestOpts {
110116 filter : config. filter . clone ( ) ,
111117 filter_exact : config. filter_exact ,
118+ //#[cfg(feature = "rustc")]
119+ //force_run_in_process: false,
120+ #[ cfg( feature = "rustc" ) ]
121+ exclude_should_panic : false ,
112122 run_ignored : if config. run_ignored { test:: RunIgnored :: Yes } else { test:: RunIgnored :: No } ,
113123 format : if config. quiet { test:: OutputFormat :: Terse } else { test:: OutputFormat :: Pretty } ,
114124 logfile : config. logfile . clone ( ) ,
@@ -123,6 +133,8 @@ pub fn test_opts(config: &Config) -> test::TestOpts {
123133 skip : vec ! [ ] ,
124134 list : false ,
125135 options : test:: Options :: new ( ) ,
136+ #[ cfg( feature = "rustc" ) ]
137+ time_options : None ,
126138 }
127139}
128140
@@ -254,6 +266,8 @@ pub fn make_test(config: &Config, testpaths: &TestPaths) -> test::TestDescAndFn
254266 ignore : early_props. ignore ,
255267 should_panic : should_panic,
256268 allow_fail : false ,
269+ #[ cfg( feature = "rustc" ) ]
270+ test_type : test:: TestType :: IntegrationTest ,
257271 } ,
258272 testfn : make_test_closure ( config, testpaths) ,
259273 }
0 commit comments