diff options
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_process.rb | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/test/ruby/test_process.rb b/test/ruby/test_process.rb index 3e7f3b6964..3764b72a58 100644 --- a/test/ruby/test_process.rb +++ b/test/ruby/test_process.rb @@ -1213,7 +1213,6 @@ class TestProcess < Test::Unit::TestCase assert_equal(expected, [s.exited?, s.signaled?, s.stopped?, s.success?], "[s.exited?, s.signaled?, s.stopped?, s.success?]") - assert_equal(false, s.exited?) end end @@ -1232,16 +1231,14 @@ class TestProcess < Test::Unit::TestCase end t = Time.now s = $? - assert_equal([false, true, false], - [s.exited?, s.signaled?, s.stopped?], - "[s.exited?, s.signaled?, s.stopped?]") + assert_equal([false, true, false, nil], + [s.exited?, s.signaled?, s.stopped?, s.success?], + "[s.exited?, s.signaled?, s.stopped?, s.success?]") assert_send( [["#<Process::Status: pid #{ s.pid } SIGQUIT (signal #{ s.termsig })>", "#<Process::Status: pid #{ s.pid } SIGQUIT (signal #{ s.termsig }) (core dumped)>"], :include?, s.inspect]) - assert_equal(false, s.exited?) - assert_equal(nil, s.success?) EnvUtil.diagnostic_reports("QUIT", RUBY, pid, t) end end |