summaryrefslogtreecommitdiff
path: root/test/ruby/test_process.rb
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-08-05 11:47:25 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-08-05 11:47:25 +0900
commit521e25baa42c31cc40e60c1da3a5e8e147255ef9 (patch)
treed6ac66b654d8d61b513ff1d34e5ac23796bbbf51 /test/ruby/test_process.rb
parent8cfa3d861c393b7f2f35eaf30132edd8423ba59a (diff)
Fixed assertion
The regexp should be expected to match the error message.
Diffstat (limited to 'test/ruby/test_process.rb')
-rw-r--r--test/ruby/test_process.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_process.rb b/test/ruby/test_process.rb
index c51f802505..b96acb1373 100644
--- a/test/ruby/test_process.rb
+++ b/test/ruby/test_process.rb
@@ -258,7 +258,7 @@ class TestProcess < Test::Unit::TestCase
end
end;
- assert_raise(ArgumentError, /rlimit_cpu/) {
+ assert_raise_with_message(ArgumentError, /rlimit_cpu/) {
system(RUBY, '-e', 'exit', "rlimit_cpu\0".to_sym => 3600)
}
end