summaryrefslogtreecommitdiffstats
path: root/test
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
commit804782a4bf544842bad2e7a12ea395f8cf1c7bc0 (patch)
tree7895235f81880a10abe03e0a58c8582ad5ecd43d /test
parent8e69bc188a91931136a53d516c56bf6ade316b77 (diff)
downloadruby-804782a4bf544842bad2e7a12ea395f8cf1c7bc0.tar.gz
ruby-804782a4bf544842bad2e7a12ea395f8cf1c7bc0.tar.xz
ruby-804782a4bf544842bad2e7a12ea395f8cf1c7bc0.zip
* test/dl/test_func.rb (test_strtod): strtod test should not rely on
memory layout git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25711 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-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 512c22851..86ac6301a 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