diff options
author | wanabe <wanabe@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-03-19 16:39:16 +0000 |
---|---|---|
committer | wanabe <wanabe@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-03-19 16:39:16 +0000 |
commit | 7fde2619633b123bbc60543c1d1fc3d212a4916c (patch) | |
tree | 616e163c5c5aa2a37e965f84e7472a91162ca515 /test | |
parent | 7e2fa5adf46a3cfa9d6c8363e63ce1fc4d12031c (diff) |
* test/dl/test_cfunc.rb (test_to_s): a result of sprintf("%x", ptr)
may contain 0.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26984 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/dl/test_cfunc.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/dl/test_cfunc.rb b/test/dl/test_cfunc.rb index 28501f2c6d..209c8f3731 100644 --- a/test/dl/test_cfunc.rb +++ b/test/dl/test_cfunc.rb @@ -50,7 +50,7 @@ module DL def test_to_s s = @cf.to_s assert s.tainted?, 'to_s should be tainted' - assert_match(/ptr=#{sprintf("0x%x", @cf.ptr)}/, s) + assert_match(/ptr=#{sprintf("0x0*%x", @cf.ptr)}/, s) assert_match(/name='#{@cf.name}'/, s) assert_match(/type=#{@cf.ctype}/, s) end |