]> git.lizzy.rs Git - rust.git/commitdiff
std::rt: Remove the test for context()
authorBrian Anderson <banderson@mozilla.com>
Sun, 4 Aug 2013 06:50:28 +0000 (23:50 -0700)
committerBrian Anderson <banderson@mozilla.com>
Sun, 4 Aug 2013 22:11:56 +0000 (15:11 -0700)
This is no longer testable once newsched is turned on

src/libstd/rt/mod.rs

index 4cfe0efacfefe88b8969fa8db7cf75fe908d65b3..33e83fd9040412936dc0d28db05a3d7709f6e22a 100644 (file)
@@ -432,13 +432,3 @@ pub fn context() -> RuntimeContext {
         pub fn rust_try_get_task() -> *rust_task;
     }
 }
-
-#[test]
-fn test_context() {
-    use unstable::run_in_bare_thread;
-
-    assert_eq!(context(), OldTaskContext);
-    do run_in_bare_thread {
-        assert_eq!(context(), GlobalContext);
-    }
-}