diff options
Diffstat (limited to 'test/dl/test_dl2.rb')
-rw-r--r-- | test/dl/test_dl2.rb | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/test/dl/test_dl2.rb b/test/dl/test_dl2.rb index 88ef0869b1..955ac1d855 100644 --- a/test/dl/test_dl2.rb +++ b/test/dl/test_dl2.rb @@ -11,15 +11,6 @@ class TestDL < TestBase # TODO: refactor test repetition - def test_free_secure - assert_raises(SecurityError) do - Thread.new do - $SAFE = 4 - DL.free(0) - end.join - end - end - def test_realloc str = "abc" ptr_id = DL.realloc(0, 4) @@ -33,15 +24,6 @@ class TestDL < TestBase DL.free ptr_id end - def test_realloc_secure - assert_raises(SecurityError) do - Thread.new do - $SAFE = 4 - DL.realloc(0, 4) - end.join - end - end - def test_malloc str = "abc" @@ -56,15 +38,6 @@ class TestDL < TestBase DL.free ptr_id end - def test_malloc_security - assert_raises(SecurityError) do - Thread.new do - $SAFE = 4 - DL.malloc(4) - end.join - end - end - def test_call_int() cfunc = CFunc.new(@libc['atoi'], TYPE_INT, 'atoi') x = cfunc.call(["100"].pack("p").unpack("l!*")) |