std: silence some test warnings.
This commit is contained in:
parent
d8087cae44
commit
366ca44cc8
6 changed files with 22 additions and 27 deletions
|
@ -934,17 +934,15 @@ fn test_spawn_sched_blocking() {
|
|||
let lock = testrt::rust_dbg_lock_create();
|
||||
|
||||
do spawn_sched(SingleThreaded) {
|
||||
unsafe {
|
||||
testrt::rust_dbg_lock_lock(lock);
|
||||
testrt::rust_dbg_lock_lock(lock);
|
||||
|
||||
start_ch.send(());
|
||||
start_ch.send(());
|
||||
|
||||
// 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);
|
||||
|
||||
fin_ch.send(());
|
||||
}
|
||||
fin_ch.send(());
|
||||
};
|
||||
|
||||
// Wait until the other task has its lock
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue