mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
7e2fa5adf4
commit
7fde261963
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue