diff options
| author | bors <bors@rust-lang.org> | 2013-08-06 12:14:07 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-08-06 12:14:07 -0700 |
| commit | 6972eb4cd7702a343a7e79c4a57522d0de763327 (patch) | |
| tree | d7ddc3d864b8037237c6546eecd4e14d9e7d7607 | |
| parent | 72080954b9deb3a6a5f793d2fd1ef32c3d5acb5d (diff) | |
| parent | d5de801cc1b4a3147dfd5a29a3d0e129ee0fe783 (diff) | |
| download | rust-6972eb4cd7702a343a7e79c4a57522d0de763327.tar.gz rust-6972eb4cd7702a343a7e79c4a57522d0de763327.zip | |
auto merge of #8321 : alexcrichton/rust/enable-rusti, r=cmr
Now that LLVM has been upgraded, I think that we can try again to re-enable the rusti tests.
| -rw-r--r-- | src/librusti/rusti.rs | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/src/librusti/rusti.rs b/src/librusti/rusti.rs index 5d5518997f6..86290ea65b5 100644 --- a/src/librusti/rusti.rs +++ b/src/librusti/rusti.rs @@ -565,10 +565,7 @@ mod tests { } } - // 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 @@ 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,13 +594,12 @@ mod tests { 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?\"); } "); } |
