File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -309,7 +309,7 @@ fn mk_test_module(cx: &TestCtxt) -> @ast::item {
309
309
let mainfn = ( quote_item ! (
310
310
pub fn main( ) {
311
311
#[ main] ;
312
- extra:: test:: test_main_static( :: std:: os:: args( ) , tests ) ;
312
+ extra:: test:: test_main_static( :: std:: os:: args( ) , TESTS ) ;
313
313
}
314
314
) ) . get ( ) ;
315
315
@@ -366,7 +366,7 @@ fn mk_tests(cx: &TestCtxt) -> @ast::item {
366
366
let test_descs = mk_test_descs ( cx) ;
367
367
368
368
( quote_item ! (
369
- pub static tests : & ' static [ self :: extra:: test:: TestDescAndFn ] =
369
+ pub static TESTS : & ' static [ self :: extra:: test:: TestDescAndFn ] =
370
370
$test_descs
371
371
;
372
372
) ) . get ( )
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ fn shouldnotignore() {
26
26
#[ test]
27
27
fn checktests ( ) {
28
28
// Pull the tests out of the secreturn test module
29
- let tests = __test:: tests ;
29
+ let tests = __test:: TESTS ;
30
30
31
31
assert ! (
32
32
tests. iter( ) . any_( |t| t. desc. name. to_str( ) == ~"shouldignore" && t.desc.ignore));
You can’t perform that action at this time.
0 commit comments