about summary refs log tree commit diff
path: root/src/libstd/rt
diff options
context:
space:
mode:
authorDaniel Micay <danielmicay@gmail.com>2013-09-22 18:25:59 -0400
committerDaniel Micay <danielmicay@gmail.com>2013-09-22 18:25:59 -0400
commitbc34a3416bfc56e8daf8015fa10424a8f64f5e91 (patch)
treee6e105081746a872b8e679860cc9b6e1440e1f44 /src/libstd/rt
parentcd2da7d5f37161ae1d8c3b1481c79275cf346999 (diff)
downloadrust-bc34a3416bfc56e8daf8015fa10424a8f64f5e91.tar.gz
rust-bc34a3416bfc56e8daf8015fa10424a8f64f5e91.zip
disable starvation test completely for now
this is still broken on the bsd builder, perhaps because it has 1 core
Diffstat (limited to 'src/libstd/rt')
-rw-r--r--src/libstd/rt/sched.rs23
1 files changed, 10 insertions, 13 deletions
diff --git a/src/libstd/rt/sched.rs b/src/libstd/rt/sched.rs
index 87b39f06dcf..c3841760de3 100644
--- a/src/libstd/rt/sched.rs
+++ b/src/libstd/rt/sched.rs
@@ -1212,25 +1212,22 @@ mod test {
         }
     }
 
-    #[test]
+    // FIXME: #9407: xfail-test
     fn dont_starve_1() {
         use rt::comm::oneshot;
         use unstable::running_on_valgrind;
 
-        // FIXME: #9407: should work while serialized on valgrind
-        if !running_on_valgrind() {
-            do stress_factor().times {
-                do run_in_mt_newsched_task {
-                    let (port, chan) = oneshot();
-
-                    // This task should not be able to starve the sender;
-                    // The sender should get stolen to another thread.
-                    do spawntask {
-                        while !port.peek() { }
-                    }
+        do stress_factor().times {
+            do run_in_mt_newsched_task {
+                let (port, chan) = oneshot();
 
-                    chan.send(());
+                // This task should not be able to starve the sender;
+                // The sender should get stolen to another thread.
+                do spawntask {
+                    while !port.peek() { }
                 }
+
+                chan.send(());
             }
         }
     }