disable starvation test completely for now

this is still broken on the bsd builder, perhaps because it has 1 core
This commit is contained in:
Daniel Micay 2013-09-22 18:25:59 -04:00
parent cd2da7d5f3
commit bc34a3416b
1 changed files with 10 additions and 13 deletions

View File

@ -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();
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() { }
}
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(());
}
}
}