@@ -1630,10 +1630,10 @@ 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
@@ -1644,11 +1644,13 @@ end
16441644 if isnothing (tmp_output_file)
16451645 error (" Failed to open file $tmp_output_filename " )
16461646 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)
1647+ for timeout in (1 , 4 , 16 )
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