ruby-changes:15107
From: wanabe <ko1@a...>
Date: Sat, 20 Mar 2010 01:39:42 +0900 (JST)
Subject: [ruby-changes:15107] Ruby:r26984 (trunk): * test/dl/test_cfunc.rb (test_to_s): a result of sprintf("%x", ptr)
wanabe 2010-03-20 01:39:16 +0900 (Sat, 20 Mar 2010) New Revision: 26984 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=26984 Log: * test/dl/test_cfunc.rb (test_to_s): a result of sprintf("%x", ptr) may contain 0. Modified files: trunk/test/dl/test_cfunc.rb Index: test/dl/test_cfunc.rb =================================================================== --- test/dl/test_cfunc.rb (revision 26983) +++ test/dl/test_cfunc.rb (revision 26984) @@ -50,7 +50,7 @@ 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/