summaryrefslogtreecommitdiff
path: root/test/fiddle/test_handle.rb
diff options
context:
space:
mode:
authorJeremy Evans <code@jeremyevans.net>2019-10-19 16:10:47 -0700
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2019-10-24 19:34:49 +0900
commitb809784817649817c3e53fa000f57504446caef9 (patch)
treef278724c35c5d09bec3fd52049746dffced65c73 /test/fiddle/test_handle.rb
parentce6caade7c57a505f73086ccd7b33c14f7715f22 (diff)
[ruby/fiddle] Remove taint support (#21)
Ruby 2.7 deprecates taint and it no longer has an effect. The lack of taint support should not cause a problem in previous Ruby versions. https://github.com/ruby/fiddle/commit/18d6fb6915
Diffstat (limited to 'test/fiddle/test_handle.rb')
-rw-r--r--test/fiddle/test_handle.rb23
1 files changed, 0 insertions, 23 deletions
diff --git a/test/fiddle/test_handle.rb b/test/fiddle/test_handle.rb
index c0fac39908..17f9c92a11 100644
--- a/test/fiddle/test_handle.rb
+++ b/test/fiddle/test_handle.rb
@@ -8,29 +8,6 @@ module Fiddle
class TestHandle < TestCase
include Fiddle
- def test_safe_handle_open
- Thread.new do
- $SAFE = 1
- assert_raise(SecurityError) {
- Fiddle::Handle.new(LIBC_SO.dup.taint)
- }
- end.join
- ensure
- $SAFE = 0
- end
-
- def test_safe_function_lookup
- Thread.new do
- h = Fiddle::Handle.new(LIBC_SO)
- $SAFE = 1
- assert_raise(SecurityError) {
- h["qsort".dup.taint]
- }
- end.join
- ensure
- $SAFE = 0
- end
-
def test_to_i
handle = Fiddle::Handle.new(LIBC_SO)
assert_kind_of Integer, handle.to_i