File tree 1 file changed +9
-8
lines changed
1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -565,7 +565,10 @@ mod tests {
565
565
}
566
566
}
567
567
568
- #[ cfg( not( target_word_size = "32" ) ) ]
568
+ // FIXME: #7220 rusti on 32bit mac doesn't work.
569
+ // FIXME: #7641 rusti on 32bit linux cross compile doesn't work
570
+ // FIXME: #7115 re-enable once LLVM has been upgraded
571
+ #[ cfg( thiswillneverbeacfgflag) ]
569
572
fn run_program ( prog : & str ) {
570
573
let mut r = repl ( ) ;
571
574
for cmd in prog. split_iter ( '\n' ) {
@@ -574,9 +577,6 @@ mod tests {
574
577
"the command '%s' failed" , cmd) ;
575
578
}
576
579
}
577
- // FIXME: #7220 rusti on 32bit mac doesn't work
578
- // FIXME: #7641 rusti on 32bit linux cross compile doesn't work
579
- #[ cfg( target_word_size = "32" ) ]
580
580
fn run_program ( _: & str ) { }
581
581
582
582
#[ test]
@@ -594,12 +594,13 @@ mod tests {
594
594
run_program ( "let a = 3;" ) ;
595
595
}
596
596
597
- #[ test]
597
+ #[ test] # [ ignore ]
598
598
fn new_tasks ( ) {
599
+ // XXX: can't spawn new tasks because the JIT code is cleaned up
600
+ // after the main function is done.
599
601
run_program ( "
600
- use std::task::try;
601
- try( || println(\" Please don't segfault\" ) );
602
- do try { println(\" Please?\" ); }
602
+ spawn( || println(\" Please don't segfault\" ) );
603
+ do spawn { println(\" Please?\" ); }
603
604
" ) ;
604
605
}
605
606
You can’t perform that action at this time.
0 commit comments