diff options
Diffstat (limited to 'test/fiddle/test_handle.rb')
-rw-r--r-- | test/fiddle/test_handle.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/fiddle/test_handle.rb b/test/fiddle/test_handle.rb index 233e8b0aa4..444ac55da3 100644 --- a/test/fiddle/test_handle.rb +++ b/test/fiddle/test_handle.rb @@ -1,4 +1,4 @@ -# frozen_string_literal: false +# frozen_string_literal: true begin require_relative 'helper' rescue LoadError @@ -11,7 +11,7 @@ module Fiddle def test_safe_handle_open t = Thread.new do $SAFE = 1 - Fiddle::Handle.new(LIBC_SO.taint) + Fiddle::Handle.new(LIBC_SO.dup.taint) end assert_raise(SecurityError) { t.value } end @@ -20,7 +20,7 @@ module Fiddle t = Thread.new do h = Fiddle::Handle.new(LIBC_SO) $SAFE = 1 - h["qsort".taint] + h["qsort".dup.taint] end assert_raise(SecurityError) { t.value } end |