@@ -692,6 +692,7 @@ mod test {
692692 use rt:: test:: * ;
693693 use cell:: Cell ;
694694 use iter:: Times ;
695+ use rt:: util;
695696
696697 #[ test]
697698 fn oneshot_single_thread_close_port_first ( ) {
@@ -840,6 +841,7 @@ mod test {
840841
841842 #[ test]
842843 fn oneshot_multi_thread_close_stress ( ) {
844+ if util:: limit_thread_creation_due_to_osx_and_valgrind ( ) { return ; }
843845 do stress_factor ( ) . times {
844846 do run_in_newsched_task {
845847 let ( port, chan) = oneshot :: < int > ( ) ;
@@ -855,6 +857,7 @@ mod test {
855857
856858 #[ test]
857859 fn oneshot_multi_thread_send_close_stress ( ) {
860+ if util:: limit_thread_creation_due_to_osx_and_valgrind ( ) { return ; }
858861 do stress_factor ( ) . times {
859862 do run_in_newsched_task {
860863 let ( port, chan) = oneshot :: < int > ( ) ;
@@ -875,6 +878,7 @@ mod test {
875878
876879 #[ test]
877880 fn oneshot_multi_thread_recv_close_stress ( ) {
881+ if util:: limit_thread_creation_due_to_osx_and_valgrind ( ) { return ; }
878882 do stress_factor ( ) . times {
879883 do run_in_newsched_task {
880884 let ( port, chan) = oneshot :: < int > ( ) ;
@@ -901,6 +905,7 @@ mod test {
901905
902906 #[ test]
903907 fn oneshot_multi_thread_send_recv_stress ( ) {
908+ if util:: limit_thread_creation_due_to_osx_and_valgrind ( ) { return ; }
904909 do stress_factor ( ) . times {
905910 do run_in_newsched_task {
906911 let ( port, chan) = oneshot :: < ~int > ( ) ;
@@ -920,6 +925,7 @@ mod test {
920925
921926 #[ test]
922927 fn stream_send_recv_stress ( ) {
928+ if util:: limit_thread_creation_due_to_osx_and_valgrind ( ) { return ; }
923929 do stress_factor ( ) . times {
924930 do run_in_mt_newsched_task {
925931 let ( port, chan) = stream :: < ~int > ( ) ;
@@ -964,6 +970,7 @@ mod test {
964970
965971 #[ test]
966972 fn shared_chan_stress ( ) {
973+ if util:: limit_thread_creation_due_to_osx_and_valgrind ( ) { return ; }
967974 do run_in_mt_newsched_task {
968975 let ( port, chan) = stream ( ) ;
969976 let chan = SharedChan :: new ( chan) ;
@@ -983,6 +990,7 @@ mod test {
983990
984991 #[ test]
985992 fn shared_port_stress ( ) {
993+ if util:: limit_thread_creation_due_to_osx_and_valgrind ( ) { return ; }
986994 do run_in_mt_newsched_task {
987995 // XXX: Removing these type annotations causes an ICE
988996 let ( end_port, end_chan) = stream :: < ( ) > ( ) ;
@@ -1063,6 +1071,8 @@ mod test {
10631071 use rand;
10641072 use rand:: RngUtil ;
10651073
1074+ if util:: limit_thread_creation_due_to_osx_and_valgrind ( ) { return ; }
1075+
10661076 do run_in_mt_newsched_task {
10671077 let ( end_port, end_chan) = stream :: < ( ) > ( ) ;
10681078 let end_chan = SharedChan :: new ( end_chan) ;
0 commit comments