diff options
Diffstat (limited to 'test/fiddle')
-rw-r--r-- | test/fiddle/helper.rb | 2 | ||||
-rw-r--r-- | test/fiddle/test_c_struct_entry.rb | 2 | ||||
-rw-r--r-- | test/fiddle/test_c_union_entity.rb | 2 | ||||
-rw-r--r-- | test/fiddle/test_closure.rb | 2 | ||||
-rw-r--r-- | test/fiddle/test_cparser.rb | 2 | ||||
-rw-r--r-- | test/fiddle/test_fiddle.rb | 2 | ||||
-rw-r--r-- | test/fiddle/test_func.rb | 4 | ||||
-rw-r--r-- | test/fiddle/test_function.rb | 2 | ||||
-rw-r--r-- | test/fiddle/test_handle.rb | 6 | ||||
-rw-r--r-- | test/fiddle/test_import.rb | 2 | ||||
-rw-r--r-- | test/fiddle/test_pointer.rb | 2 |
11 files changed, 14 insertions, 14 deletions
diff --git a/test/fiddle/helper.rb b/test/fiddle/helper.rb index d1bbe24b74..4aaa55ea78 100644 --- a/test/fiddle/helper.rb +++ b/test/fiddle/helper.rb @@ -1,4 +1,4 @@ -# frozen_string_literal: false +# frozen_string_literal: true require 'test/unit' require 'fiddle' diff --git a/test/fiddle/test_c_struct_entry.rb b/test/fiddle/test_c_struct_entry.rb index 39b7aeff99..8ece438f54 100644 --- a/test/fiddle/test_c_struct_entry.rb +++ b/test/fiddle/test_c_struct_entry.rb @@ -1,4 +1,4 @@ -# frozen_string_literal: false +# frozen_string_literal: true begin require_relative 'helper' require 'fiddle/struct' diff --git a/test/fiddle/test_c_union_entity.rb b/test/fiddle/test_c_union_entity.rb index 3c4d538ff1..5727a20e3b 100644 --- a/test/fiddle/test_c_union_entity.rb +++ b/test/fiddle/test_c_union_entity.rb @@ -1,4 +1,4 @@ -# frozen_string_literal: false +# frozen_string_literal: true begin require_relative 'helper' require 'fiddle/struct' diff --git a/test/fiddle/test_closure.rb b/test/fiddle/test_closure.rb index 0dbdcb3138..2de0660725 100644 --- a/test/fiddle/test_closure.rb +++ b/test/fiddle/test_closure.rb @@ -1,4 +1,4 @@ -# frozen_string_literal: false +# frozen_string_literal: true begin require_relative 'helper' rescue LoadError diff --git a/test/fiddle/test_cparser.rb b/test/fiddle/test_cparser.rb index c1527bf85d..c053706e13 100644 --- a/test/fiddle/test_cparser.rb +++ b/test/fiddle/test_cparser.rb @@ -1,4 +1,4 @@ -# frozen_string_literal: false +# frozen_string_literal: true begin require_relative 'helper' require 'fiddle/cparser' diff --git a/test/fiddle/test_fiddle.rb b/test/fiddle/test_fiddle.rb index cf4839af86..8751d96920 100644 --- a/test/fiddle/test_fiddle.rb +++ b/test/fiddle/test_fiddle.rb @@ -1,4 +1,4 @@ -# frozen_string_literal: false +# frozen_string_literal: true begin require_relative 'helper' rescue LoadError diff --git a/test/fiddle/test_func.rb b/test/fiddle/test_func.rb index 70e1b9e333..8f7b0c2874 100644 --- a/test/fiddle/test_func.rb +++ b/test/fiddle/test_func.rb @@ -1,4 +1,4 @@ -# frozen_string_literal: false +# frozen_string_literal: true begin require_relative 'helper' rescue LoadError @@ -16,7 +16,7 @@ module Fiddle assert_raise(SecurityError) do Thread.new { $SAFE = 1 - f.call("uname -rs".taint) + f.call("uname -rs".dup.taint) }.join end end diff --git a/test/fiddle/test_function.rb b/test/fiddle/test_function.rb index 3cce95a540..477b6a86dc 100644 --- a/test/fiddle/test_function.rb +++ b/test/fiddle/test_function.rb @@ -1,4 +1,4 @@ -# frozen_string_literal: false +# frozen_string_literal: true begin require_relative 'helper' rescue LoadError 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 diff --git a/test/fiddle/test_import.rb b/test/fiddle/test_import.rb index b637e4fadd..0cd5e76a80 100644 --- a/test/fiddle/test_import.rb +++ b/test/fiddle/test_import.rb @@ -1,5 +1,5 @@ # coding: US-ASCII -# frozen_string_literal: false +# frozen_string_literal: true begin require_relative 'helper' require 'fiddle/import' diff --git a/test/fiddle/test_pointer.rb b/test/fiddle/test_pointer.rb index 80b64b04db..27a8a6cb06 100644 --- a/test/fiddle/test_pointer.rb +++ b/test/fiddle/test_pointer.rb @@ -1,4 +1,4 @@ -# frozen_string_literal: false +# frozen_string_literal: true begin require_relative 'helper' rescue LoadError |