about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2013-08-07 08:29:49 -0700
committerAlex Crichton <alex@alexcrichton.com>2013-08-07 08:29:49 -0700
commit0927d62275ad92b4bfae98a21f98ef72b565dbf2 (patch)
treea170910ab543a8c3e80f4b439fb5a43a473c9a96
parent5b4244d917cc9341b1ec04c4e245d5f841d3facc (diff)
downloadrust-0927d62275ad92b4bfae98a21f98ef72b565dbf2.tar.gz
rust-0927d62275ad92b4bfae98a21f98ef72b565dbf2.zip
Revert "Re-enable rusti tests"
This reverts commit d5de801cc1b4a3147dfd5a29a3d0e129ee0fe783.
-rw-r--r--src/librusti/rusti.rs17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/librusti/rusti.rs b/src/librusti/rusti.rs
index 86290ea65b5..5d5518997f6 100644
--- a/src/librusti/rusti.rs
+++ b/src/librusti/rusti.rs
@@ -565,7 +565,10 @@ mod tests {
         }
     }
 
-    #[cfg(not(target_word_size = "32"))]
+    // FIXME: #7220 rusti on 32bit mac doesn't work.
+    // FIXME: #7641 rusti on 32bit linux cross compile doesn't work
+    // FIXME: #7115 re-enable once LLVM has been upgraded
+    #[cfg(thiswillneverbeacfgflag)]
     fn run_program(prog: &str) {
         let mut r = repl();
         for cmd in prog.split_iter('\n') {
@@ -574,9 +577,6 @@ mod tests {
                     "the command '%s' failed", cmd);
         }
     }
-    // FIXME: #7220 rusti on 32bit mac doesn't work
-    // FIXME: #7641 rusti on 32bit linux cross compile doesn't work
-    #[cfg(target_word_size = "32")]
     fn run_program(_: &str) {}
 
     #[test]
@@ -594,12 +594,13 @@ mod tests {
         run_program("let a = 3;");
     }
 
-    #[test]
+    #[test] #[ignore]
     fn new_tasks() {
+        // XXX: can't spawn new tasks because the JIT code is cleaned up
+        //      after the main function is done.
         run_program("
-            use std::task::try;
-            try( || println(\"Please don't segfault\") );
-            do try { println(\"Please?\"); }
+            spawn( || println(\"Please don't segfault\") );
+            do spawn { println(\"Please?\"); }
         ");
     }