diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/dl/test_cfunc.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/dl/test_cfunc.rb b/test/dl/test_cfunc.rb index bd6653ff5..28501f2c6 100644 --- a/test/dl/test_cfunc.rb +++ b/test/dl/test_cfunc.rb @@ -9,6 +9,15 @@ module DL @cf = CFunc.new(@libc[@name], TYPE_VOIDP, @name) end + def test_ptr= + @cf.ptr = @libc['malloc'] + assert_equal @cf.ptr, @libc['malloc'] + end + + def test_ptr + assert_equal @cf.ptr, @libc[@name] + end + def test_set_calltype @cf.calltype = :foo assert_equal :foo, @cf.calltype |