]> git.lizzy.rs Git - rust.git/commitdiff
auto merge of #8321 : alexcrichton/rust/enable-rusti, r=cmr
authorbors <bors@rust-lang.org>
Tue, 6 Aug 2013 19:14:07 +0000 (12:14 -0700)
committerbors <bors@rust-lang.org>
Tue, 6 Aug 2013 19:14:07 +0000 (12:14 -0700)
Now that LLVM has been upgraded, I think that we can try again to re-enable the rusti tests.

src/librusti/rusti.rs

index 5d5518997f68f0252ab8e9c3acd276c0dec417f7..86290ea65b5646f939eed20204ae3a07b79c6bc4 100644 (file)
@@ -565,10 +565,7 @@ fn repl() -> Repl {
         }
     }
 
-    // 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)]
+    #[cfg(not(target_word_size = "32"))]
     fn run_program(prog: &str) {
         let mut r = repl();
         for cmd in prog.split_iter('\n') {
@@ -577,6 +574,9 @@ fn run_program(prog: &str) {
                     "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,13 +594,12 @@ fn regression_5784() {
         run_program("let a = 3;");
     }
 
-    #[test] #[ignore]
+    #[test]
     fn new_tasks() {
-        // XXX: can't spawn new tasks because the JIT code is cleaned up
-        //      after the main function is done.
         run_program("
-            spawn( || println(\"Please don't segfault\") );
-            do spawn { println(\"Please?\"); }
+            use std::task::try;
+            try( || println(\"Please don't segfault\") );
+            do try { println(\"Please?\"); }
         ");
     }