From a2789363e107114fdc0ff45a208ae67a56bce73a Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Fri, 7 Jan 2011 01:39:58 -0500 Subject: Reenable xfailed tests for rustboot that pass with trivial or no modifications --- src/test/run-pass/task-comm.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/test/run-pass/task-comm.rs') diff --git a/src/test/run-pass/task-comm.rs b/src/test/run-pass/task-comm.rs index 3c5d3216..d5f9a3a0 100644 --- a/src/test/run-pass/task-comm.rs +++ b/src/test/run-pass/task-comm.rs @@ -1,5 +1,5 @@ -io fn main() -> () { +impure fn main() -> () { test00(true); // test01(); test02(); @@ -9,7 +9,7 @@ io fn main() -> () { test06(); } -io fn test00_start(chan[int] ch, int message, int count) { +impure fn test00_start(chan[int] ch, int message, int count) { log "Starting test00_start"; let int i = 0; while (i < count) { @@ -20,7 +20,7 @@ io fn test00_start(chan[int] ch, int message, int count) { log "Ending test00_start"; } -io fn test00(bool is_multithreaded) { +impure fn test00(bool is_multithreaded) { let int number_of_tasks = 1; let int number_of_messages = 4; log "Creating tasks"; @@ -60,14 +60,14 @@ io fn test00(bool is_multithreaded) { (number_of_tasks * number_of_tasks + number_of_tasks) / 2); } -io fn test01() { +impure fn test01() { let port[int] p = port(); log "Reading from a port that is never written to."; let int value <- p; log value; } -io fn test02() { +impure fn test02() { let port[int] p = port(); let chan[int] c = chan(p); log "Writing to a local task channel."; @@ -111,7 +111,7 @@ fn test04() { log "Finishing up."; } -io fn test05_start(chan[int] ch) { +impure fn test05_start(chan[int] ch) { ch <| 10; ch <| 20; ch <| 30; @@ -119,7 +119,7 @@ io fn test05_start(chan[int] ch) { ch <| 30; } -io fn test05() { +impure fn test05() { let port[int] po = port(); let chan[int] ch = chan(po); spawn thread test05_start(ch); -- cgit v1.2.3