зеркало из https://github.com/github/ruby.git
* 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:
Родитель
7e2fa5adf4
Коммит
7fde261963
|
@ -50,7 +50,7 @@ module DL
|
||||||
def test_to_s
|
def test_to_s
|
||||||
s = @cf.to_s
|
s = @cf.to_s
|
||||||
assert s.tainted?, 'to_s should be tainted'
|
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(/name='#{@cf.name}'/, s)
|
||||||
assert_match(/type=#{@cf.ctype}/, s)
|
assert_match(/type=#{@cf.ctype}/, s)
|
||||||
end
|
end
|
||||||
|
|
Загрузка…
Ссылка в новой задаче