aboutsummaryrefslogtreecommitdiff
path: root/src/test/run-pass/task-comm-2.rs
diff options
context:
space:
mode:
authorMichael Bebenita <[email protected]>2010-08-09 06:53:37 -0700
committerMichael Bebenita <[email protected]>2010-08-09 06:53:37 -0700
commitd647c163fd936c853d76f59ab2c656d554068ab3 (patch)
treec5092621db603321d235ea2bef6ba85e8c2424dd /src/test/run-pass/task-comm-2.rs
parentAdd Or to the AUTHORS file. (diff)
downloadrust-d647c163fd936c853d76f59ab2c656d554068ab3.tar.xz
rust-d647c163fd936c853d76f59ab2c656d554068ab3.zip
Updated/added test cases.
Diffstat (limited to 'src/test/run-pass/task-comm-2.rs')
-rw-r--r--src/test/run-pass/task-comm-2.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/test/run-pass/task-comm-2.rs b/src/test/run-pass/task-comm-2.rs
index 9c85da34..864d49de 100644
--- a/src/test/run-pass/task-comm-2.rs
+++ b/src/test/run-pass/task-comm-2.rs
@@ -1,8 +1,8 @@
fn main() -> () {
- log "===== THREADS =====";
+ log "===== SPAWNING and JOINING TASKS =====";
+ test00(false);
+ log "===== SPAWNING and JOINING THREAD TASKS =====";
test00(true);
- log "====== TASKS ======";
- // test00(false);
}
fn start(int task_number) {
@@ -15,7 +15,7 @@ fn start(int task_number) {
}
fn test00(bool create_threads) {
- let int number_of_tasks = 0;
+ let int number_of_tasks = 8;
let int i = 0;
let vec[task] tasks = vec();