Skip to content

Commit

Permalink
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/truffle/integration/safe.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit fb81d4b

Please sign in to comment.