Project

General

Profile

Actions

Bug #4306

closed

psych makes a lot of test failure on Win32 build

Added by kosaki (Motohiro KOSAKI) almost 14 years ago. Updated over 13 years ago.

Status:
Rejected
Target version:
ruby -v:
ruby 1.9.3dev (2011-01-22 trunk 30630) [i386-mswin32_100]
Backport:
[ruby-core:34791]

Description

=begin
Latest trunk makes a lot of test failure of 'nmake test-all' on win32 platform.


  1. Error:
    test_mapping(Psych::Nodes::TestEnumerable):
    NoMethodError: undefined method each' for #<Psych::Nodes::Stream:0x677d084> C:/ruby/trunk/test/psych/nodes/test_enumerable.rb:36:in calls'
    C:/ruby/trunk/test/psych/nodes/test_enumerable.rb:25:in `test_mapping'

  2. Error:
    test_alias(Psych::Nodes::TestEnumerable):
    NoMethodError: undefined method each' for #<Psych::Nodes::Stream:0x678601c> C:/ruby/trunk/test/psych/nodes/test_enumerable.rb:36:in calls'
    C:/ruby/trunk/test/psych/nodes/test_enumerable.rb:29:in `test_alias'

  3. Error:
    test_returns_enumerator(Psych::Nodes::TestEnumerable):
    NoMethodError: undefined method each' for #<Psych::Nodes::Stream:0x678a07c> C:/ruby/trunk/test/psych/nodes/test_enumerable.rb:13:in test_returns_enumerator'

  4. Error:
    test_sequence(Psych::Nodes::TestEnumerable):
    NoMethodError: undefined method each' for #<Psych::Nodes::Stream:0x678fe78> C:/ruby/trunk/test/psych/nodes/test_enumerable.rb:36:in calls'
    C:/ruby/trunk/test/psych/nodes/test_enumerable.rb:21:in `test_sequence'

  5. Error:
    test_scalar(Psych::Nodes::TestEnumerable):
    NoMethodError: undefined method each' for #<Psych::Nodes::Stream:0x678d7e0> C:/ruby/trunk/test/psych/nodes/test_enumerable.rb:36:in calls'
    C:/ruby/trunk/test/psych/nodes/test_enumerable.rb:17:in `test_scalar'

  6. Error:
    test_includes_enumerable(Psych::Nodes::TestEnumerable):
    NoMethodError: undefined method to_a' for #<Psych::Nodes::Stream:0x6792100> C:/ruby/trunk/test/psych/nodes/test_enumerable.rb:8:in test_includes_enumerable'

  7. Failure:
    test_multiple_maps(Psych::TestMergeKeys) [C:/ruby/trunk/test/psych/test_merge_keys.rb:43]:
    Expected {"x"=>1, "y"=>2, "r"=>10, "label"=>"center/big"}, not {"<<"=>[{"x"=>1, "y"=>2}, {"r"=>10}], "label"=>"center/big"}.

  8. Failure:
    test_merge_key(Psych::TestMergeKeys) [C:/ruby/trunk/test/psych/test_merge_keys.rb:18]:
    Expected {"foo"=>{"hello"=>"world"}, "bar"=>{"hello"=>"world", "baz"=>"boo"}}, not {"foo"=>{"hello"=>"world"}, "bar"=>{"hello"=>"world"}}.

  9. Failure:
    test_override(Psych::TestMergeKeys) [C:/ruby/trunk/test/psych/test_merge_keys.rb:69]:
    Expected {"x"=>1, "y"=>2, "r"=>10, "label"=>"center/big"}, not {"<<"=>[{"r"=>10}, {"x"=>0, "y"=>2}, {"r"=>1}], "x"=>1, "label"=>"center/big"}.

  10. Failure:
    test_syntax_error_twice(Psych::TestParser) [C:/ruby/trunk/test/psych/test_parser.rb:136]:
    [Psych::SyntaxError] exception expected, not
    Class:
    Message: <"failed to allocate memory">
    ---Backtrace---
    (eval):5:in empty' C:/ruby/trunk/test/psych/test_parser.rb:137:in parse'
    C:/ruby/trunk/test/psych/test_parser.rb:137:in `block in test_syntax_error_twice'


  1. Failure:
    test_syntax_error_has_path_for_string(Psych::TestParser) [C:/ruby/trunk/test/psych/test_parser.rb:145]:
    Expected /():/ to match "couldn't parse YAML at line 3 column 0".

  2. Failure:
    test_exception_line(Psych::TestParser) [C:/ruby/trunk/test/psych/test_parser.rb:170]:
    Expected /line\ 6/ to match "couldn't parse YAML at line 5 column 9".

  3. Failure:
    test_syntax_error_has_path_for_io(Psych::TestParser) [C:/ruby/trunk/test/psych/test_parser.rb:155]:
    Expected /(hello!):/ to match "couldn't parse YAML at line 3 column 0".

  4. Error:
    test_scalar(Psych::Visitors::TestDepthFirst):
    NameError: uninitialized constant Psych::Visitors::DepthFirst
    C:/ruby/trunk/test/psych/visitors/test_depth_first.rb:18:in test_scalar' ./test/runner.rb:18:in '

  5. Error:
    test_sequence(Psych::Visitors::TestDepthFirst):
    NameError: uninitialized constant Psych::Visitors::DepthFirst
    C:/ruby/trunk/test/psych/visitors/test_depth_first.rb:26:in test_sequence' ./test/runner.rb:18:in '

  6. Error:
    test_mapping(Psych::Visitors::TestDepthFirst):
    NameError: uninitialized constant Psych::Visitors::DepthFirst
    C:/ruby/trunk/test/psych/visitors/test_depth_first.rb:34:in test_mapping' ./test/runner.rb:18:in '

  7. Error:
    test_alias(Psych::Visitors::TestDepthFirst):
    NameError: uninitialized constant Psych::Visitors::DepthFirst
    C:/ruby/trunk/test/psych/visitors/test_depth_first.rb:42:in test_alias' ./test/runner.rb:18:in '


test environment
o Windows Vista (32bit)
o libyaml-0.1.3
o Visual C++ 2010 express
o ruby trunk

Aaron?
=end

Actions #1

Updated by tenderlovemaking (Aaron Patterson) almost 14 years ago

=begin
On Sun, Jan 23, 2011 at 01:41:47AM +0900, Motohiro KOSAKI wrote:

Bug #4306: psych makes a lot of test failure on Win32 build
http://redmine.ruby-lang.org/issues/show/4306

Author: Motohiro KOSAKI
Status: Open, Priority: Normal
Assigned to: Aaron Patterson, Category: lib, Target version: 1.9.3
ruby -v: ruby 1.9.3dev (2011-01-22 trunk 30630) [i386-mswin32_100]

Latest trunk makes a lot of test failure of 'nmake test-all' on win32 platform.


  1. Error:
    test_mapping(Psych::Nodes::TestEnumerable):
    NoMethodError: undefined method each' for #<Psych::Nodes::Stream:0x677d084> C:/ruby/trunk/test/psych/nodes/test_enumerable.rb:36:in calls'
    C:/ruby/trunk/test/psych/nodes/test_enumerable.rb:25:in `test_mapping'

  2. Error:
    test_alias(Psych::Nodes::TestEnumerable):
    NoMethodError: undefined method each' for #<Psych::Nodes::Stream:0x678601c> C:/ruby/trunk/test/psych/nodes/test_enumerable.rb:36:in calls'
    C:/ruby/trunk/test/psych/nodes/test_enumerable.rb:29:in `test_alias'

  3. Error:
    test_returns_enumerator(Psych::Nodes::TestEnumerable):
    NoMethodError: undefined method each' for #<Psych::Nodes::Stream:0x678a07c> C:/ruby/trunk/test/psych/nodes/test_enumerable.rb:13:in test_returns_enumerator'

  4. Error:
    test_sequence(Psych::Nodes::TestEnumerable):
    NoMethodError: undefined method each' for #<Psych::Nodes::Stream:0x678fe78> C:/ruby/trunk/test/psych/nodes/test_enumerable.rb:36:in calls'
    C:/ruby/trunk/test/psych/nodes/test_enumerable.rb:21:in `test_sequence'

  5. Error:
    test_scalar(Psych::Nodes::TestEnumerable):
    NoMethodError: undefined method each' for #<Psych::Nodes::Stream:0x678d7e0> C:/ruby/trunk/test/psych/nodes/test_enumerable.rb:36:in calls'
    C:/ruby/trunk/test/psych/nodes/test_enumerable.rb:17:in `test_scalar'

  6. Error:
    test_includes_enumerable(Psych::Nodes::TestEnumerable):
    NoMethodError: undefined method to_a' for #<Psych::Nodes::Stream:0x6792100> C:/ruby/trunk/test/psych/nodes/test_enumerable.rb:8:in test_includes_enumerable'

  7. Failure:
    test_multiple_maps(Psych::TestMergeKeys) [C:/ruby/trunk/test/psych/test_merge_keys.rb:43]:
    Expected {"x"=>1, "y"=>2, "r"=>10, "label"=>"center/big"}, not {"<<"=>[{"x"=>1, "y"=>2}, {"r"=>10}], "label"=>"center/big"}.

  8. Failure:
    test_merge_key(Psych::TestMergeKeys) [C:/ruby/trunk/test/psych/test_merge_keys.rb:18]:
    Expected {"foo"=>{"hello"=>"world"}, "bar"=>{"hello"=>"world", "baz"=>"boo"}}, not {"foo"=>{"hello"=>"world"}, "bar"=>{"hello"=>"world"}}.

  9. Failure:
    test_override(Psych::TestMergeKeys) [C:/ruby/trunk/test/psych/test_merge_keys.rb:69]:
    Expected {"x"=>1, "y"=>2, "r"=>10, "label"=>"center/big"}, not {"<<"=>[{"r"=>10}, {"x"=>0, "y"=>2}, {"r"=>1}], "x"=>1, "label"=>"center/big"}.

  10. Failure:
    test_syntax_error_twice(Psych::TestParser) [C:/ruby/trunk/test/psych/test_parser.rb:136]:
    [Psych::SyntaxError] exception expected, not
    Class:
    Message: <"failed to allocate memory">
    ---Backtrace---
    (eval):5:in empty' C:/ruby/trunk/test/psych/test_parser.rb:137:in parse'
    C:/ruby/trunk/test/psych/test_parser.rb:137:in `block in test_syntax_error_twice'


  1. Failure:
    test_syntax_error_has_path_for_string(Psych::TestParser) [C:/ruby/trunk/test/psych/test_parser.rb:145]:
    Expected /():/ to match "couldn't parse YAML at line 3 column 0".

  2. Failure:
    test_exception_line(Psych::TestParser) [C:/ruby/trunk/test/psych/test_parser.rb:170]:
    Expected /line\ 6/ to match "couldn't parse YAML at line 5 column 9".

  3. Failure:
    test_syntax_error_has_path_for_io(Psych::TestParser) [C:/ruby/trunk/test/psych/test_parser.rb:155]:
    Expected /(hello!):/ to match "couldn't parse YAML at line 3 column 0".

  4. Error:
    test_scalar(Psych::Visitors::TestDepthFirst):
    NameError: uninitialized constant Psych::Visitors::DepthFirst
    C:/ruby/trunk/test/psych/visitors/test_depth_first.rb:18:in test_scalar' ./test/runner.rb:18:in '

  5. Error:
    test_sequence(Psych::Visitors::TestDepthFirst):
    NameError: uninitialized constant Psych::Visitors::DepthFirst
    C:/ruby/trunk/test/psych/visitors/test_depth_first.rb:26:in test_sequence' ./test/runner.rb:18:in '

  6. Error:
    test_mapping(Psych::Visitors::TestDepthFirst):
    NameError: uninitialized constant Psych::Visitors::DepthFirst
    C:/ruby/trunk/test/psych/visitors/test_depth_first.rb:34:in test_mapping' ./test/runner.rb:18:in '

  7. Error:
    test_alias(Psych::Visitors::TestDepthFirst):
    NameError: uninitialized constant Psych::Visitors::DepthFirst
    C:/ruby/trunk/test/psych/visitors/test_depth_first.rb:42:in test_alias' ./test/runner.rb:18:in '


test environment
o Windows Vista (32bit)
o libyaml-0.1.3
o Visual C++ 2010 express
o ruby trunk

Aaron?

Can you try nmake clean, then rebuild? I've added files, and it looks
like those files aren't being copied to .ext when you run nmake. It
seems like a build problem, not a problem with psych.

--
Aaron Patterson
http://tenderlovemaking.com/

Attachment: (unnamed)
=end

Actions #2

Updated by kosaki (Motohiro KOSAKI) almost 14 years ago

  • Status changed from Open to Rejected

=begin
I'm sorry. Yes, rebuild and retest work perfectly.
Therefore I'll close this ticket.

Thanks.
=end

Actions

Also available in: Atom PDF

Like0
Like0Like0