summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authortenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-06-04 02:24:32 +0000
committertenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-06-04 02:24:32 +0000
commitc052958912009e52af0cd4261684783af5b4a5a3 (patch)
tree710a6f900bab753f070c0e383d31b092ad4ac537 /test
parentda0ac85107ef9f26b68f0480b7c08893611d2be4 (diff)
* 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
Diffstat (limited to 'test')
-rw-r--r--test/dl/test_cfunc.rb4
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