diff --git a/src/librustc/front/test.rs b/src/librustc/front/test.rs index f2670a663ea0c..f4d89f559f23e 100644 --- a/src/librustc/front/test.rs +++ b/src/librustc/front/test.rs @@ -309,7 +309,7 @@ fn mk_test_module(cx: &TestCtxt) -> @ast::item { let mainfn = (quote_item!( pub fn main() { #[main]; - extra::test::test_main_static(::std::os::args(), tests); + extra::test::test_main_static(::std::os::args(), TESTS); } )).get(); @@ -366,7 +366,7 @@ fn mk_tests(cx: &TestCtxt) -> @ast::item { let test_descs = mk_test_descs(cx); (quote_item!( - pub static tests : &'static [self::extra::test::TestDescAndFn] = + pub static TESTS : &'static [self::extra::test::TestDescAndFn] = $test_descs ; )).get() diff --git a/src/test/run-pass/test-ignore-cfg.rs b/src/test/run-pass/test-ignore-cfg.rs index e7a23244c06bc..e54bc7404b440 100644 --- a/src/test/run-pass/test-ignore-cfg.rs +++ b/src/test/run-pass/test-ignore-cfg.rs @@ -26,7 +26,7 @@ fn shouldnotignore() { #[test] fn checktests() { // Pull the tests out of the secreturn test module - let tests = __test::tests; + let tests = __test::TESTS; assert!( tests.iter().any_(|t| t.desc.name.to_str() == ~"shouldignore" && t.desc.ignore));