Skip to content

Commit

Permalink
Add regression test for shell exit (#4364)
Browse files Browse the repository at this point in the history
* Add regression test for shell exit (#4361)

Adds a regression test for 69da0af reported in this issue #4361.

* Update test_kernel.rb
  • Loading branch information
javierhonduco authored and kares committed Dec 7, 2016
1 parent bab8bd3 commit 587bb74
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/jruby/test_kernel.rb
Expand Up @@ -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("")
Expand Down

0 comments on commit 587bb74

Please sign in to comment.