Skip to content

Commit ad2fc50

Browse files
committed
libcore: Fix core test more. rs=broken
1 parent c6fe93d commit ad2fc50

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

src/libcore/task/mod.rs

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -971,15 +971,17 @@ fn test_spawn_sched_blocking() {
971971
let lock = testrt::rust_dbg_lock_create();
972972

973973
do spawn_sched(SingleThreaded) {
974-
testrt::rust_dbg_lock_lock(lock);
974+
unsafe {
975+
testrt::rust_dbg_lock_lock(lock);
975976

976-
oldcomm::send(start_ch, ());
977+
oldcomm::send(start_ch, ());
977978

978-
// Block the scheduler thread
979-
testrt::rust_dbg_lock_wait(lock);
980-
testrt::rust_dbg_lock_unlock(lock);
979+
// Block the scheduler thread
980+
testrt::rust_dbg_lock_wait(lock);
981+
testrt::rust_dbg_lock_unlock(lock);
981982

982-
oldcomm::send(fin_ch, ());
983+
oldcomm::send(fin_ch, ());
984+
}
983985
};
984986

985987
// Wait until the other task has its lock

0 commit comments

Comments
 (0)