diff options
author | Benoit Daloze <eregontp@gmail.com> | 2022-03-01 16:49:23 +0100 |
---|---|---|
committer | Benoit Daloze <eregontp@gmail.com> | 2022-03-01 16:49:23 +0100 |
commit | a0e3da9ecc3ff46c27eae34091651929790e28dc (patch) | |
tree | 5a5d4d3ccb2d4bd7b9aad9a5365c84be6f18d9af /test | |
parent | 25ad9eabc7e49de61b1c0504c14c5af46bf446ed (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.rb | 2 |
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 |