From c052958912009e52af0cd4261684783af5b4a5a3 Mon Sep 17 00:00:00 2001 From: tenderlove Date: Fri, 4 Jun 2010 02:24:32 +0000 Subject: * test/dl/test_cfunc.rb: test for r28156 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28157 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/dl/test_cfunc.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test/dl') 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 -- cgit v1.2.3