summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorBenoit Daloze <eregontp@gmail.com>2022-03-01 16:49:23 +0100
committerBenoit Daloze <eregontp@gmail.com>2022-03-01 16:49:23 +0100
commita0e3da9ecc3ff46c27eae34091651929790e28dc (patch)
tree5a5d4d3ccb2d4bd7b9aad9a5365c84be6f18d9af /test
parent25ad9eabc7e49de61b1c0504c14c5af46bf446ed (diff)
Fix race in TestThread#test_thread_status_in_trap
* If the sleep is not enough to run the rest of the logic the process would be exited early, e.g., before the signal handler can run.
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_thread.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_thread.rb b/test/ruby/test_thread.rb
index 2c91eca583..e80ca16022 100644
--- a/test/ruby/test_thread.rb
+++ b/test/ruby/test_thread.rb
@@ -1068,7 +1068,7 @@ q.pop
puts mth.status
Process.kill(:INT, $$)
}
- sleep 0.1
+ sleep
INPUT
end