summaryrefslogtreecommitdiffstats
path: root/test/dl/test_cptr.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/dl/test_cptr.rb')
-rw-r--r--test/dl/test_cptr.rb4
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