Backport #9812

Recent ruby_2_0_0 backport breaks psych test-all on windows

Added by Jon Forums over 1 year ago. Updated over 1 year ago.

[ruby-core:62459]
Status:Closed
Priority:Normal
Assignee:Usaku NAKAMURA

Description

ruby -rpsych -ve "puts %Q{psych: %s\nlibyaml: %s} % [Psych::VERSION,Psych::LIBYAML_VERSION]"
ruby 2.0.0p480 (2014-05-08 revision 45870) [i386-mingw32]
psych: 2.0.0
libyaml: 0.1.6

gem --version
2.2.0

# oddly, this doesn't match the psych version from the first step
gem li psych

*** LOCAL GEMS ***

psych (2.0.5)


# build ruby from source using rubyinstaller recipes and mingw-w64 based 32bit gcc 4.7.3
rake ruby20 local=C:\Users\Jon\Documents\RubyDev\ruby-git openssl=1.0.0l libffi=3.0.13 dkver=mingwbuilds-32-4.7.3
...
make test-all
...
[ 1109/13537] Psych::TestEncoding#test_dump_load_encoding_object = 0.00 s
  7) Error:
test_dump_load_encoding_object(Psych::TestEncoding):
TypeError: allocator undefined for Encoding
    c:/Users/Jon/Documents/RubyDev/ri-git/sandbox/ruby20_build/.ext/common/psych/visitors/to_ruby.rb:303:in `allocate'
    c:/Users/Jon/Documents/RubyDev/ri-git/sandbox/ruby20_build/.ext/common/psych/visitors/to_ruby.rb:303:in `revive'
    c:/Users/Jon/Documents/RubyDev/ri-git/sandbox/ruby20_build/.ext/common/psych/visitors/to_ruby.rb:178:in `visit_Psych_Nodes_Mapping'
    c:/Users/Jon/Documents/RubyDev/ri-git/sandbox/ruby20_build/.ext/common/psych/visitors/visitor.rb:15:in `visit'
    c:/Users/Jon/Documents/RubyDev/ri-git/sandbox/ruby20_build/.ext/common/psych/visitors/visitor.rb:5:in `accept'
    c:/Users/Jon/Documents/RubyDev/ri-git/sandbox/ruby20_build/.ext/common/psych/visitors/to_ruby.rb:20:in `accept'
    c:/Users/Jon/Documents/RubyDev/ri-git/sandbox/ruby20_build/.ext/common/psych/visitors/to_ruby.rb:240:in `visit_Psych_Nodes_Document'
    c:/Users/Jon/Documents/RubyDev/ri-git/sandbox/ruby20_build/.ext/common/psych/visitors/visitor.rb:15:in `visit'
    c:/Users/Jon/Documents/RubyDev/ri-git/sandbox/ruby20_build/.ext/common/psych/visitors/visitor.rb:5:in `accept'
    c:/Users/Jon/Documents/RubyDev/ri-git/sandbox/ruby20_build/.ext/common/psych/visitors/to_ruby.rb:20:in `accept'
    c:/Users/Jon/Documents/RubyDev/ri-git/sandbox/ruby20_build/.ext/common/psych/nodes/node.rb:35:in `to_ruby'
    c:/Users/Jon/Documents/RubyDev/ri-git/sandbox/ruby20_build/.ext/common/psych.rb:130:in `load'
    c:/Users/Jon/Documents/RubyDev/ruby-git/test/psych/helper.rb:36:in `assert_cycle'
    c:/Users/Jon/Documents/RubyDev/ruby-git/test/psych/test_encoding.rb:35:in `test_dump_load_encoding_object'
...
Finished tests in 542.274830s, 24.9634 tests/s, 4144.4372 assertions/s.
13537 tests, 2247424 assertions, 3 failures, 1 errors, 104 skips

ruby -v: ruby 2.0.0p480 (2014-05-08 revision 45870) [i386-mingw32]
make: *** [yes-test-all] Error 4

History

#1 Updated by Nobuyoshi Nakada over 1 year ago

  • Tracker changed from Bug to Backport
  • Project changed from Ruby trunk to Backport200
  • Category deleted (test)
  • Status changed from Open to Assigned
  • Assignee set to Usaku NAKAMURA

#2 Updated by Usaku NAKAMURA over 1 year ago

  • Status changed from Assigned to Closed

Sorry, it's merge mistake.
It has already fixed at r45876.
Thank you for reporting.

Also available in: Atom PDF