Forum: Ruby-core YAML omap test and object id collisions

Posted by Marcus Rueckert (Guest)
on 2009-06-26 11:58
(Received via mailing list)
hi,

when upgrading to 1.8.6.pl369 i got reproducable testsuite failures for
the last test in test/yaml/test_yaml.rb
[[[
omap = YAML::Omap.new
1000.times { |i| omap["key_#{i}"] = { "value" => i } }
raise "id collision in ordered map" if omap.to_yaml =~ /id\d+/
]]]

this seems to be bug 3698 [1]. Disabling the GC before the test and
reenabling it afterwards fixed the failure for me. The bug is marked as
fixed but i couldnt find any reference in the changelog which revisions
should fix the issue in the 1.8 branch. Any pointers would be helpful so
i can backport the fix.

thanks in advance

  darix

[1] 
http://rubyforge.org/tracker/?func=detail&atid=1698&aid=3698&group_id=426
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.