diff options
Diffstat (limited to 'test/dl')
-rw-r--r-- | test/dl/test_cfunc.rb | 2 | ||||
-rw-r--r-- | test/dl/test_dl2.rb | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/test/dl/test_cfunc.rb b/test/dl/test_cfunc.rb index c0bab45700..39fa8133a2 100644 --- a/test/dl/test_cfunc.rb +++ b/test/dl/test_cfunc.rb @@ -72,7 +72,7 @@ module DL Thread.new do f = Function.new(@cf, [TYPE_VOIDP, TYPE_VOIDP]) assert_nil CFunc.last_error - str = f.call("000", "123") + f.call("000", "123") assert_not_nil CFunc.last_error end.join end diff --git a/test/dl/test_dl2.rb b/test/dl/test_dl2.rb index 8f4275fb65..88ef0869b1 100644 --- a/test/dl/test_dl2.rb +++ b/test/dl/test_dl2.rb @@ -28,7 +28,7 @@ class TestDL < TestBase assert_equal ptr_id, ptr.to_i cfunc = CFunc.new(@libc['strcpy'], TYPE_VOIDP, 'strcpy') - x = cfunc.call([ptr_id,str].pack("l!p").unpack("l!*")) + cfunc.call([ptr_id,str].pack("l!p").unpack("l!*")) assert_equal("abc\0", ptr[0,4]) DL.free ptr_id end @@ -51,7 +51,7 @@ class TestDL < TestBase assert_equal ptr_id, ptr.to_i cfunc = CFunc.new(@libc['strcpy'], TYPE_VOIDP, 'strcpy') - x = cfunc.call([ptr_id,str].pack("l!p").unpack("l!*")) + cfunc.call([ptr_id,str].pack("l!p").unpack("l!*")) assert_equal("abc\0", ptr[0,4]) DL.free ptr_id end |