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
This commit is contained in:
nobu 2014-05-11 10:40:18 +00:00
Родитель 61cd4e9dda
Коммит c1268be411
1 изменённых файлов: 3 добавлений и 6 удалений

Просмотреть файл

@ -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