From: Tanaka Akira Date: 2010-07-06T06:13:50+09:00 Subject: [ruby-core:31054] Re: [Bug #3538] psych tests sometimes fail 2010/7/6 Aaron Patterson : > > Seems this isn't just a problem with psych. When psych fails to round trip the time, marshal seems to fail too. Apply this patch: > Then run the tests like this: > > $ make test-all TESTS='psych/test_yaml.rb -n test_time_now_cycle' % make test-all TESTS='psych/test_yaml.rb -n test_time_now_cycle' ./miniruby -I./lib -I.ext/common -I./- -r./ext/purelib.rb ./tool/runruby.rb --extout=.ext -- "./test/runner.rb" psych/test_yaml.rb -n test_time_now_cycle Loaded suite ./test/runner Started {"--- 2010-07-06 06:03:22.26126000 +09:00\n"=>"--- 2010-07-06 06:03:22.261260000 +09:00\n"} -0.23513388633728027 {:marshal=>false} E Finished in 0.077630 seconds. 1) Error: test_time_now_cycle(Psych_Unit_Tests): RuntimeError: wtf /home/ruby/tcio/ruby/test/psych/test_yaml.rb:1162:in `block in test_time_now_cycle' /home/ruby/tcio/ruby/test/psych/test_yaml.rb:1156:in `times' /home/ruby/tcio/ruby/test/psych/test_yaml.rb:1156:in `test_time_now_cycle' 1 tests, 0 assertions, 0 failures, 1 errors, 0 skips Test run options: --seed 46970 --name "test_time_now_cycle" -- Tanaka Akira