summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-05-11 10:40:18 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-05-11 10:40:18 +0000
commitc1268be411e817830099a91017480d2f2f0644dd (patch)
tree8ca6bd2771dffb83ac2131422a56838d394884b4
parent61cd4e9dda5a5741f44308c96758a81fd4724621 (diff)
test_process.rb: duplicate assertions
* test/ruby/test_process.rb (test_status_{kill,quit}): remove duplicate assertions git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45919 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--test/ruby/test_process.rb9
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