summaryrefslogtreecommitdiff
path: root/test/fiddle/test_handle.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/fiddle/test_handle.rb')
-rw-r--r--test/fiddle/test_handle.rb37
1 files changed, 0 insertions, 37 deletions
diff --git a/test/fiddle/test_handle.rb b/test/fiddle/test_handle.rb
index 2655b1c..2480230 100644
--- a/test/fiddle/test_handle.rb
+++ b/test/fiddle/test_handle.rb
@@ -14,15 +14,6 @@ module Fiddle
assert_kind_of Integer, handle.to_i
end
- def test_static_sym_secure
- assert_raises(SecurityError) do
- Thread.new do
- $SAFE = 2
- Fiddle::Handle.sym('calloc')
- end.join
- end
- end
-
def test_static_sym_unknown
assert_raises(DLError) { Fiddle::Handle.sym('fooo') }
assert_raises(DLError) { Fiddle::Handle['fooo'] }
@@ -66,16 +57,6 @@ module Fiddle
assert_raises(TypeError) { handle[nil] }
end
- def test_sym_secure
- assert_raises(SecurityError) do
- Thread.new do
- $SAFE = 2
- handle = Handle.new(LIBC_SO)
- handle.sym('calloc')
- end.join
- end
- end
-
def test_sym
handle = Handle.new(LIBC_SO)
refute_nil handle.sym('calloc')
@@ -99,24 +80,6 @@ module Fiddle
assert_instance_of Handle, dlopen(LIBC_SO)
end
- def test_dlopen_safe
- assert_raises(SecurityError) do
- Thread.new do
- $SAFE = 2
- dlopen(LIBC_SO)
- end.join
- end
- end
-
- def test_initialize_safe
- assert_raises(SecurityError) do
- Thread.new do
- $SAFE = 2
- Handle.new(LIBC_SO)
- end.join
- end
- end
-
def test_initialize_noargs
handle = Handle.new
refute_nil handle['rb_str_new']