aboutsummaryrefslogtreecommitdiff
path: root/src/test/run-pass/task-comm.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.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.rs')
-rw-r--r--src/test/run-pass/task-comm.rs18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/test/run-pass/task-comm.rs b/src/test/run-pass/task-comm.rs
index ef71c6e1..3c5d3216 100644
--- a/src/test/run-pass/task-comm.rs
+++ b/src/test/run-pass/task-comm.rs
@@ -1,11 +1,11 @@
-fn main() -> () {
- // test00(true);
+io fn main() -> () {
+ test00(true);
// test01();
- // test02();
- // test03();
- // test04();
- // test05();
+ test02();
+ test03();
+ test04();
+ test05();
test06();
}
@@ -22,7 +22,7 @@ io fn test00_start(chan[int] ch, int message, int count) {
io fn test00(bool is_multithreaded) {
let int number_of_tasks = 1;
- let int number_of_messages = 64;
+ let int number_of_messages = 4;
log "Creating tasks";
let port[int] po = port();
@@ -103,7 +103,7 @@ fn test04_start() {
fn test04() {
log "Spawning lots of tasks.";
- let int i = 64;
+ let int i = 4;
while (i > 0) {
i = i - 1;
spawn thread test04_start();
@@ -139,7 +139,7 @@ fn test06_start(int task_number) {
}
fn test06() {
- let int number_of_tasks = 32;
+ let int number_of_tasks = 4;
log "Creating tasks";
let int i = 0;