summaryrefslogtreecommitdiff
path: root/test/dl
diff options
context:
space:
mode:
authortenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-11-10 22:51:24 +0000
committertenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-11-10 22:51:24 +0000
commitf0e0b77864d3222b838d3e3074e728bd0d3f75f6 (patch)
tree7895235f81880a10abe03e0a58c8582ad5ecd43d /test/dl
parentb2a34a1ecfba129b2eadd532ccc857c6d49db538 (diff)
downloadruby-f0e0b77864d3222b838d3e3074e728bd0d3f75f6.tar.gz
* test/dl/test_func.rb (test_strtod): strtod test should not rely on
memory layout git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25711 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/dl')
-rw-r--r--test/dl/test_func.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/dl/test_func.rb b/test/dl/test_func.rb
index 512c22851e..86ac6301a4 100644
--- a/test/dl/test_func.rb
+++ b/test/dl/test_func.rb
@@ -33,8 +33,8 @@ module DL
def test_strtod()
f = Function.new(CFunc.new(@libc['strtod'], TYPE_DOUBLE, 'strtod'),
[TYPE_VOIDP, TYPE_VOIDP])
- buff1 = "12.34"
- buff2 = " "
+ buff1 = CPtr["12.34"]
+ buff2 = buff1 + 4
r = f.call(buff1, buff2)
assert_match(12.00..13.00, r)
end