Skip to content

Commit

Permalink
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/jruby/test_kernel.rb
Original file line number Diff line number Diff line change
@@ -491,6 +491,11 @@ def test_system_non_existing_with_args
assert !res
end

def test_system_shell_exit
system('exit 0')
assert_equal 0, $?.exitstatus
end

def test_exec_empty
assert_raise(Errno::ENOENT) {
exec("")

0 comments on commit 587bb74

Please sign in to comment.