diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | test/ruby/envutil.rb | 1 |
2 files changed, 7 insertions, 0 deletions
@@ -1,3 +1,9 @@ +Thu Jan 23 20:20:17 2014 Koichi Sasada <ko1@atdot.net> + + * test/ruby/envutil.rb: try to wait a bit (0.1sec) when ruby process + exits by signals because some SEGV tests fail because of not enough + error output. + Thu Jan 23 20:06:27 2014 Koichi Sasada <ko1@atdot.net> * test/ruby/test_settracefunc.rb: check the target thread. diff --git a/test/ruby/envutil.rb b/test/ruby/envutil.rb index 65b68df248..2e9ebbbca2 100644 --- a/test/ruby/envutil.rb +++ b/test/ruby/envutil.rb @@ -282,6 +282,7 @@ module Test def assert_in_out_err(args, test_stdin = "", test_stdout = [], test_stderr = [], message = nil, **opt) stdout, stderr, status = EnvUtil.invoke_ruby(args, test_stdin, true, true, **opt) if signo = status.termsig + sleep 0.1 EnvUtil.diagnostic_reports(Signal.signame(signo), EnvUtil.rubybin, status.pid, Time.now) end if block_given? |