Skip to content

Commit

Permalink
[Truffle] Fix safe test.
Browse files Browse the repository at this point in the history
* exit! by default uses exit code 1.
  • Loading branch information
eregon committed Sep 20, 2016
1 parent ef31a3f commit fb81d4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/truffle/integration/safe.sh
Expand Up @@ -28,13 +28,13 @@ unsafe -Xtruffle.platform.safe_puts=false -e "Truffle::Safe.puts 'hello, world'"

unsafe -e "puts 'hello, world'"
unsafe -e '`echo foo`'
unsafe -e 'exit!'
unsafe -e 'exit!(0)'
unsafe -e 'Rubinius::FFI::Pointer.new(1).read_int'
unsafe -e "File.open('bad.txt')"

# Check we can enable some unsafe operations if we want to

safe -Xtruffle.platform.safe.exit=true -e 'exit!'
safe -Xtruffle.platform.safe.exit=true -e 'exit!(0)'

# Check that safe_puts sanitises correctly

Expand Down

0 comments on commit fb81d4b

Please sign in to comment.