diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-03-30 21:00:51 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-03-30 21:00:51 +0000 |
commit | 956745eee2ce6536f3c03b4489441089b96186c3 (patch) | |
tree | 9a73b3803c195db40df65d37ed7978bf7b2f76d8 /test | |
parent | 38c3ba2fa5e867714009ca477558dccccddca360 (diff) | |
download | ruby-956745eee2ce6536f3c03b4489441089b96186c3.tar.gz |
test_process.rb: test if success?
* test/ruby/test_process.rb (test_rlimit_value): should not use
magic number 0, which may not be EXIT_SUCCESS. use `success?`
instead.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45477 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_process.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_process.rb b/test/ruby/test_process.rb index a99e979e88..43c2f649b1 100644 --- a/test/ruby/test_process.rb +++ b/test/ruby/test_process.rb @@ -131,7 +131,7 @@ class TestProcess < Test::Unit::TestCase exit false end End - assert_not_equal(0, s.exitstatus) + assert_not_predicate(s, :success?) s = run_in_child(<<-'End') cur, max = Process.getrlimit(:NOFILE) Process.setrlimit(:NOFILE, [max-10, cur].min) @@ -141,7 +141,7 @@ class TestProcess < Test::Unit::TestCase exit false end End - assert_not_equal(0, s.exitstatus) + assert_not_predicate(s, :success?) end end |