diff options
author | tenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-11-07 21:37:27 +0000 |
---|---|---|
committer | tenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-11-07 21:37:27 +0000 |
commit | 406209f50508089b343af63ebc38c4b75d440a02 (patch) | |
tree | ba13f041ced0f2f38c63fa39926aa0f1374b849a /test | |
parent | bf957e541305d1d51f8dc45600ae316bc86e9707 (diff) | |
download | ruby-406209f50508089b343af63ebc38c4b75d440a02.tar.gz ruby-406209f50508089b343af63ebc38c4b75d440a02.tar.xz ruby-406209f50508089b343af63ebc38c4b75d440a02.zip |
* ext/dl/cptr.c (rb_dlptr_inspect): making inspect consistent across
platforms
* test/dl/test_cptr.rb (test_inspect): testing inspect
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25684 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/dl/test_cptr.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/dl/test_cptr.rb b/test/dl/test_cptr.rb index 2b40a16fb..5bc98ef35 100644 --- a/test/dl/test_cptr.rb +++ b/test/dl/test_cptr.rb @@ -59,8 +59,8 @@ module DL ptr = CPtr.new(0) inspect = ptr.inspect assert_match(/size=#{ptr.size}/, inspect) - assert_match(/free=#{ptr.free}/, inspect) - assert_match(/ptr=#{ptr.to_i}/, inspect) + assert_match(/free=#{sprintf("%#x", ptr.free.to_i)}/, inspect) + assert_match(/ptr=#{sprintf("%#x", ptr.to_i)}/, inspect) end def test_to_ptr_string |