summaryrefslogtreecommitdiff
path: root/test/dl/test_cfunc.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/dl/test_cfunc.rb')
-rw-r--r--test/dl/test_cfunc.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/dl/test_cfunc.rb b/test/dl/test_cfunc.rb
index 3e928257bd..bd6653ff5d 100644
--- a/test/dl/test_cfunc.rb
+++ b/test/dl/test_cfunc.rb
@@ -9,6 +9,11 @@ module DL
@cf = CFunc.new(@libc[@name], TYPE_VOIDP, @name)
end
+ def test_set_calltype
+ @cf.calltype = :foo
+ assert_equal :foo, @cf.calltype
+ end
+
def test_new_ptr_type_name
assert_equal @name, @cf.name
assert @cf.name.tainted?, 'name should be tainted'
@@ -47,6 +52,7 @@ module DL
def test_to_i
assert_equal @cf.to_i, @cf.ptr
+ assert_equal @libc[@name], @cf.to_i
end
def test_last_error