diff options
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_process.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/test/ruby/test_process.rb b/test/ruby/test_process.rb index b314b7f38a..2a13819dca 100644 --- a/test/ruby/test_process.rb +++ b/test/ruby/test_process.rb @@ -1922,6 +1922,7 @@ EOS er, ew = IO.pipe unless runner = IO.popen("-") er.close + status = true begin $stderr.reopen($stdout) trap(:QUIT) {} @@ -1934,10 +1935,13 @@ EOS $stdout.flush end ensure - ew.puts([Marshal.dump($!)].pack("m0")) if $! + if $! + ew.puts([Marshal.dump($!)].pack("m0")) + status = false + end ew.close + exit!(status) end - exit!(true) end ew.close begin |