summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/ruby/test_system.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/ruby/test_system.rb b/test/ruby/test_system.rb
index e1b03322cf..c56e2a13c4 100644
--- a/test/ruby/test_system.rb
+++ b/test/ruby/test_system.rb
@@ -167,12 +167,18 @@ class TestSystem < Test::Unit::TestCase
system('feature_14235', exception: false)
end
assert_nothing_raised do
+ system(ruby, "-e", "abort", exception: false)
+ end
+ assert_nothing_raised do
system("'#{ruby}' -e abort", exception: false)
end
assert_raise(Errno::ENOENT) do
system('feature_14235', exception: true)
end
assert_raise_with_message(RuntimeError, /\ACommand failed with exit /) do
+ system(ruby, "-e", "abort", exception: true)
+ end
+ assert_raise_with_message(RuntimeError, /\ACommand failed with exit /) do
system("'#{ruby}' -e abort", exception: true)
end
end