summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2014-08-09 03:06:21 +0000
committerbors <bors@rust-lang.org>2014-08-09 03:06:21 +0000
commit413328b0f2be70303c53ecde89c1f59f450a38ba (patch)
tree24b349fa7b6c1132de3638eb2c046e0729743920 /src/libstd
parent39bafb09fd616ae6aceec4abf05c270435e8cc42 (diff)
parentedc9191921a9ef8ff8438a10b5f315ae9190e48c (diff)
downloadrust-413328b0f2be70303c53ecde89c1f59f450a38ba.tar.gz
rust-413328b0f2be70303c53ecde89c1f59f450a38ba.zip
auto merge of #15964 : huonw/rust/gensym-test, r=alexcrichton
This requires avoiding `quote_...!` for constructing the parts of the
__test module, since that stringifies and reinterns the idents, losing
the special gensym'd nature of them. (#15962.)
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/lib.rs8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/libstd/lib.rs b/src/libstd/lib.rs
index 125c3fdf5d9..20fc7efeb57 100644
--- a/src/libstd/lib.rs
+++ b/src/libstd/lib.rs
@@ -114,6 +114,8 @@
 #![allow(deprecated)]
 #![deny(missing_doc)]
 
+#![reexport_test_harness_main = "test_main"]
+
 // When testing libstd, bring in libuv as the I/O backend so tests can print
 // things and all of the std::io tests have an I/O interface to run on top
 // of
@@ -186,13 +188,9 @@ pub use unicode::char;
 pub use core_sync::comm;
 
 // Run tests with libgreen instead of libnative.
-//
-// FIXME: This egregiously hacks around starting the test runner in a different
-//        threading mode than the default by reaching into the auto-generated
-//        '__test' module.
 #[cfg(test)] #[start]
 fn start(argc: int, argv: *const *const u8) -> int {
-    green::start(argc, argv, rustuv::event_loop, __test::main)
+    green::start(argc, argv, rustuv::event_loop, test_main)
 }
 
 /* Exported macros */