diff options
| author | toddaaro <github@opprobrio.us> | 2013-08-01 15:08:51 -0700 |
|---|---|---|
| committer | toddaaro <github@opprobrio.us> | 2013-08-01 15:38:48 -0700 |
| commit | 8e98eabce52b29d2e49ce63713ad2e1e04115bab (patch) | |
| tree | bdb6d50d12751f70db7c3425834f62011b438595 /src/libstd/task | |
| parent | 1d82fe5aea71b1c265634f32716b268972141efb (diff) | |
| download | rust-8e98eabce52b29d2e49ce63713ad2e1e04115bab.tar.gz rust-8e98eabce52b29d2e49ce63713ad2e1e04115bab.zip | |
modified local to include an implementation for try_unsafe_borrow::<Task> so that the log methods will work
Diffstat (limited to 'src/libstd/task')
| -rw-r--r-- | src/libstd/task/mod.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/libstd/task/mod.rs b/src/libstd/task/mod.rs index 5e4d48403cc..7a864ecb867 100644 --- a/src/libstd/task/mod.rs +++ b/src/libstd/task/mod.rs @@ -685,7 +685,7 @@ fn test_spawn_unlinked_unsup_no_fail_down() { // grandchild sends on a port let ch = ch.clone(); do spawn_unlinked { // Give middle task a chance to fail-but-not-kill-us. - for 16.times { task::yield(); } + do 16.times { task::yield(); } ch.send(()); // If killed first, grandparent hangs. } fail!(); // Shouldn't kill either (grand)parent or (grand)child. @@ -706,7 +706,7 @@ fn test_spawn_unlinked_sup_no_fail_up() { // child unlinked fails do run_in_newsched_task { do spawn_supervised { fail!(); } // Give child a chance to fail-but-not-kill-us. - for 16.times { task::yield(); } + do 16.times { task::yield(); } } } #[test] #[ignore(cfg(windows))] @@ -808,7 +808,7 @@ fn test_spawn_failure_propagate_grandchild() { do spawn_supervised { do spawn_supervised { block_forever(); } } - for 16.times { task::yield(); } + do 16.times { task::yield(); } fail!(); }; assert!(result.is_err()); @@ -824,7 +824,7 @@ fn test_spawn_failure_propagate_secondborn() { do spawn_supervised { do spawn { block_forever(); } // linked } - for 16.times { task::yield(); } + do 16.times { task::yield(); } fail!(); }; assert!(result.is_err()); @@ -840,7 +840,7 @@ fn test_spawn_failure_propagate_nephew_or_niece() { do spawn { // linked do spawn_supervised { block_forever(); } } - for 16.times { task::yield(); } + do 16.times { task::yield(); } fail!(); }; assert!(result.is_err()); @@ -856,7 +856,7 @@ fn test_spawn_linked_sup_propagate_sibling() { do spawn { // linked do spawn { block_forever(); } // linked } - for 16.times { task::yield(); } + do 16.times { task::yield(); } fail!(); }; assert!(result.is_err()); |
