diff options
| author | Patrick Walton <pcwalton@mimiga.net> | 2013-01-10 23:08:17 -0800 |
|---|---|---|
| committer | Patrick Walton <pcwalton@mimiga.net> | 2013-01-10 23:08:17 -0800 |
| commit | ad2fc50ca1d8fecdc54306203f226d87a365ce36 (patch) | |
| tree | a84861f61ea219a78d7a521847b7e1c5f8f41556 /src/libcore/task | |
| parent | c6fe93d9b5ac40cfacc8d8e8e55261d284de4829 (diff) | |
libcore: Fix core test more. rs=broken
Diffstat (limited to 'src/libcore/task')
| -rw-r--r-- | src/libcore/task/mod.rs | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/libcore/task/mod.rs b/src/libcore/task/mod.rs index 501dd52f9ca..c6b0491786d 100644 --- a/src/libcore/task/mod.rs +++ b/src/libcore/task/mod.rs @@ -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 |
