ruby: fixes SEGV on MessagePack_Unpacker_each

This commit is contained in:
frsyuki
2010-04-22 14:38:10 +09:00
parent bccac610a4
commit 354af69f62
3 changed files with 149 additions and 174 deletions

View File

@@ -209,6 +209,7 @@ class MessagePackTestFormat < Test::Unit::TestCase
obj.to_msgpack.split(//).each do |b|
pac.feed(b)
pac.each {|o|
GC.start
assert_equal(obj, o)
parsed += 1
}