@@ -1630,25 +1630,27 @@ end
16301630 program = "
16311631 function main()
16321632 t = Threads.@spawn begin
1633- ccall(:uv_sleep, Cvoid, (Cuint,), 5000 )
1633+ ccall(:uv_sleep, Cvoid, (Cuint,), 20_000 )
16341634 end
16351635 # Force a GC
1636- ccall(:uv_sleep, Cvoid, (Cuint,), 1000 )
1636+ ccall(:uv_sleep, Cvoid, (Cuint,), 1_000 )
16371637 GC.gc()
16381638 wait(t)
16391639 end
16401640 main()
16411641 "
1642- tmp_output_filename = tempname ()
1643- tmp_output_file = open (tmp_output_filename, " w" )
1644- if isnothing (tmp_output_file)
1645- error (" Failed to open file $tmp_output_filename " )
1646- end
1647- run (pipeline (` $(Base. julia_cmd ()) --threads=4 --timeout-for-safepoint-straggler=1 -e $program ` , stderr = tmp_output_file))
1648- # Check whether we printed the straggler's backtrace
1649- @test ! isempty (read (tmp_output_filename, String))
1650- close (tmp_output_file)
1651- rm (tmp_output_filename)
1642+ for timeout in (" 1" , " 4" , " 16" )
1643+ tmp_output_filename = tempname ()
1644+ tmp_output_file = open (tmp_output_filename, " w" )
1645+ if isnothing (tmp_output_file)
1646+ error (" Failed to open file $tmp_output_filename " )
1647+ end
1648+ run (pipeline (` $(Base. julia_cmd ()) --threads=4 --timeout-for-safepoint-straggler=$(timeout) -e $program ` , stderr = tmp_output_file))
1649+ # Check whether we printed the straggler's backtrace
1650+ @test ! isempty (read (tmp_output_filename, String))
1651+ close (tmp_output_file)
1652+ rm (tmp_output_filename)
1653+ end
16521654end
16531655
16541656end # main testset
0 commit comments