Test: Skip within_sandbox on JRuby.
Add a test for repeated enter!
This commit is contained in:
parent
d305efab9f
commit
2c8fcd66a3
1 changed files with 3 additions and 0 deletions
|
@ -9,6 +9,8 @@ class CapsicumTest < Minitest::Test
|
|||
end
|
||||
|
||||
def test_1_within_sandbox
|
||||
skip if RUBY_ENGINE == 'jruby' # fork not supported
|
||||
|
||||
refute Capsicum.sandboxed?
|
||||
|
||||
result = Capsicum.within_sandbox do
|
||||
|
@ -30,6 +32,7 @@ class CapsicumTest < Minitest::Test
|
|||
def test_2_capsicum
|
||||
refute Capsicum.sandboxed?
|
||||
assert Capsicum.enter!
|
||||
assert Capsicum.enter!
|
||||
assert Capsicum.sandboxed?
|
||||
|
||||
assert_raises(Errno::ECAPMODE) do
|
||||
|
|
Loading…
Reference in a new issue