diff options
-rw-r--r-- | test/dl/test_cfunc.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/dl/test_cfunc.rb b/test/dl/test_cfunc.rb index e18a096611..c0bab45700 100644 --- a/test/dl/test_cfunc.rb +++ b/test/dl/test_cfunc.rb @@ -59,6 +59,10 @@ module DL assert_equal @cf.inspect, @cf.to_s end + def test_inspect_is_tainted + assert @cf.inspect.tainted?, 'inspect is tainted' + end + def test_to_i assert_equal @cf.to_i, @cf.ptr assert_equal @libc[@name], @cf.to_i |