diff options
author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2023-03-22 18:07:40 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2023-03-22 18:07:40 +0900 |
commit | 8c00b130a4dd0914a311f3ef96d1311d99992ea5 (patch) | |
tree | 53cf4a83500f54e25a8fcd4429ba98580647b4f6 /test | |
parent | 464a264cd42abecf4cfaa425ece42515e6c08509 (diff) | |
download | ruby-8c00b130a4dd0914a311f3ef96d1311d99992ea5.tar.gz |
Fixup 43d20596b8fefadc309348448352bf13615129c6
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_process.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/ruby/test_process.rb b/test/ruby/test_process.rb index 5c63ad6a90..6e8050a54a 100644 --- a/test/ruby/test_process.rb +++ b/test/ruby/test_process.rb @@ -1526,7 +1526,7 @@ class TestProcess < Test::Unit::TestCase def test_wait_exception bug11340 = '[ruby-dev:49176] [Bug #11340]' t0 = t1 = nil - sec = RUBY_PLATFORM =~ /freebsd/ ? 6 : 3 + sec = 3 code = "puts;STDOUT.flush;Thread.start{gets;exit};sleep(#{sec})" IO.popen([RUBY, '-e', code], 'r+') do |f| pid = f.pid @@ -1543,6 +1543,7 @@ class TestProcess < Test::Unit::TestCase end t1 = Time.now diff = t1 - t0 + sec = RUBY_PLATFORM =~ /freebsd/ ? sec * 2 : sec assert_operator(diff, :<, sec, ->{"#{bug11340}: #{diff} seconds to interrupt Process.wait"}) f.puts |