libcore: Fix core test more. rs=broken

This commit is contained in:
Patrick Walton 2013-01-10 23:08:17 -08:00
parent c6fe93d9b5
commit ad2fc50ca1

View File

@ -971,15 +971,17 @@ fn test_spawn_sched_blocking() {
let lock = testrt::rust_dbg_lock_create();
do spawn_sched(SingleThreaded) {
testrt::rust_dbg_lock_lock(lock);
unsafe {
testrt::rust_dbg_lock_lock(lock);
oldcomm::send(start_ch, ());
oldcomm::send(start_ch, ());
// Block the scheduler thread
testrt::rust_dbg_lock_wait(lock);
testrt::rust_dbg_lock_unlock(lock);
// Block the scheduler thread
testrt::rust_dbg_lock_wait(lock);
testrt::rust_dbg_lock_unlock(lock);
oldcomm::send(fin_ch, ());
oldcomm::send(fin_ch, ());
}
};
// Wait until the other task has its lock