@@ -727,6 +727,7 @@ mod test {
727727 use rt:: test:: * ;
728728 use cell:: Cell ;
729729 use iter:: Times ;
730+ use rt:: util;
730731
731732 #[ test]
732733 fn oneshot_single_thread_close_port_first ( ) {
@@ -875,6 +876,7 @@ mod test {
875876
876877 #[ test]
877878 fn oneshot_multi_thread_close_stress ( ) {
879+ if util:: limit_thread_creation_due_to_osx_and_valgrind ( ) { return ; }
878880 do stress_factor ( ) . times {
879881 do run_in_newsched_task {
880882 let ( port, chan) = oneshot :: < int > ( ) ;
@@ -890,6 +892,7 @@ mod test {
890892
891893 #[ test]
892894 fn oneshot_multi_thread_send_close_stress ( ) {
895+ if util:: limit_thread_creation_due_to_osx_and_valgrind ( ) { return ; }
893896 do stress_factor ( ) . times {
894897 do run_in_newsched_task {
895898 let ( port, chan) = oneshot :: < int > ( ) ;
@@ -910,6 +913,7 @@ mod test {
910913
911914 #[ test]
912915 fn oneshot_multi_thread_recv_close_stress ( ) {
916+ if util:: limit_thread_creation_due_to_osx_and_valgrind ( ) { return ; }
913917 do stress_factor ( ) . times {
914918 do run_in_newsched_task {
915919 let ( port, chan) = oneshot :: < int > ( ) ;
@@ -936,6 +940,7 @@ mod test {
936940
937941 #[ test]
938942 fn oneshot_multi_thread_send_recv_stress ( ) {
943+ if util:: limit_thread_creation_due_to_osx_and_valgrind ( ) { return ; }
939944 do stress_factor ( ) . times {
940945 do run_in_newsched_task {
941946 let ( port, chan) = oneshot :: < ~int > ( ) ;
@@ -955,6 +960,7 @@ mod test {
955960
956961 #[ test]
957962 fn stream_send_recv_stress ( ) {
963+ if util:: limit_thread_creation_due_to_osx_and_valgrind ( ) { return ; }
958964 do stress_factor ( ) . times {
959965 do run_in_mt_newsched_task {
960966 let ( port, chan) = stream :: < ~int > ( ) ;
@@ -999,6 +1005,7 @@ mod test {
9991005
10001006 #[ test]
10011007 fn shared_chan_stress ( ) {
1008+ if util:: limit_thread_creation_due_to_osx_and_valgrind ( ) { return ; }
10021009 do run_in_mt_newsched_task {
10031010 let ( port, chan) = stream ( ) ;
10041011 let chan = SharedChan :: new ( chan) ;
@@ -1018,6 +1025,7 @@ mod test {
10181025
10191026 #[ test]
10201027 fn shared_port_stress ( ) {
1028+ if util:: limit_thread_creation_due_to_osx_and_valgrind ( ) { return ; }
10211029 do run_in_mt_newsched_task {
10221030 // XXX: Removing these type annotations causes an ICE
10231031 let ( end_port, end_chan) = stream :: < ( ) > ( ) ;
@@ -1098,6 +1106,8 @@ mod test {
10981106 use rand;
10991107 use rand:: RngUtil ;
11001108
1109+ if util:: limit_thread_creation_due_to_osx_and_valgrind ( ) { return ; }
1110+
11011111 do run_in_mt_newsched_task {
11021112 let ( end_port, end_chan) = stream :: < ( ) > ( ) ;
11031113 let end_chan = SharedChan :: new ( end_chan) ;
0 commit comments