summaryrefslogtreecommitdiff
path: root/ext/dl/test/test.rb
diff options
context:
space:
mode:
authorttate <ttate@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-11-07 16:42:07 +0000
committerttate <ttate@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-11-07 16:42:07 +0000
commit8e3721dfa828464981b5e9f77eff79b815c288d5 (patch)
tree9613983a0a668ab13d6147973af2807bf0428273 /ext/dl/test/test.rb
parent56cddaf082cc33d38b646f3145c9ce2dd806f1df (diff)
Get rid of ineffective symbols, lines, constants and so on.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3031 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/dl/test/test.rb')
-rw-r--r--ext/dl/test/test.rb11
1 files changed, 6 insertions, 5 deletions
diff --git a/ext/dl/test/test.rb b/ext/dl/test/test.rb
index 3e124783fa..52be04699f 100644
--- a/ext/dl/test/test.rb
+++ b/ext/dl/test/test.rb
@@ -32,10 +32,6 @@ def debug(*xs)
end
end
-print("VERSION = #{DL::VERSION}\n")
-print("MAJOR_VERSION = #{DL::MAJOR_VERSION}\n")
-print("MINOR_VERSION = #{DL::MINOR_VERSION}\n")
-print("\n")
print("DLSTACK = #{DL::DLSTACK}\n")
print("MAX_ARG = #{DL::MAX_ARG}\n")
print("\n")
@@ -289,6 +285,11 @@ assert("struct!", :must,
ptr["i"] == 3 &&
ptr["l"] == 4)
-GC.start
+ptr = DL::malloc(DL::sizeof("IP"))
+ptr.struct!("IP", "n", "ptr")
+ptr["n"] = 10
+ptr["ptr"] = nil
+assert("struct!", :must, ptr["n"] == 10 && ptr["ptr"] == nil)
+GC.start
printf("fail/total = #{$FAIL}/#{$TOTAL}\n")