--3uo+9/B/ebqu+fSQ
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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
>=20
> 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]
>=20
> Latest trunk makes a lot of test failure of 'nmake test-all' on win32 pla=
tform.
>=20
> -------------------------------------------------------------------------=
---
>   5) Error:
> test_mapping(Psych::Nodes::TestEnumerable):
> NoMethodError: undefined method `each' for #<Psych::Nodes::Stream:0x677d0=
84>
>     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'
>=20
>   6) Error:
> test_alias(Psych::Nodes::TestEnumerable):
> NoMethodError: undefined method `each' for #<Psych::Nodes::Stream:0x67860=
1c>
>     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'
>=20
>   7) Error:
> test_returns_enumerator(Psych::Nodes::TestEnumerable):
> NoMethodError: undefined method `each' for #<Psych::Nodes::Stream:0x678a0=
7c>
>     C:/ruby/trunk/test/psych/nodes/test_enumerable.rb:13:in `test_returns=
_enumerator'
>=20
>   8) Error:
> test_sequence(Psych::Nodes::TestEnumerable):
> NoMethodError: undefined method `each' for #<Psych::Nodes::Stream:0x678fe=
78>
>     C:/ruby/trunk/test/psych/nodes/test_enumerable.rb:36:in `calls'
>     C:/ruby/trunk/test/psych/nodes/test_enumerable.rb:21:in `test_sequenc=
e'
>=20
>   9) Error:
> test_scalar(Psych::Nodes::TestEnumerable):
> NoMethodError: undefined method `each' for #<Psych::Nodes::Stream:0x678d7=
e0>
>     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'
>=20
>  10) Error:
> test_includes_enumerable(Psych::Nodes::TestEnumerable):
> NoMethodError: undefined method `to_a' for #<Psych::Nodes::Stream:0x67921=
00>
>     C:/ruby/trunk/test/psych/nodes/test_enumerable.rb:8:in `test_includes=
_enumerable'
>=20
>  11) Failure:
> test_multiple_maps(Psych::TestMergeKeys) [C:/ruby/trunk/test/psych/test_m=
erge_keys.rb:43]:
> Expected {"x"=3D>1, "y"=3D>2, "r"=3D>10, "label"=3D>"center/big"}, not {"=
<<"=3D>[{"x"=3D>1, "y"=3D>2}, {"r"=3D>10}], "label"=3D>"center/big"}.
>=20
>  12) Failure:
> test_merge_key(Psych::TestMergeKeys) [C:/ruby/trunk/test/psych/test_merge=
_keys.rb:18]:
> Expected {"foo"=3D>{"hello"=3D>"world"}, "bar"=3D>{"hello"=3D>"world", "b=
az"=3D>"boo"}}, not {"foo"=3D>{"hello"=3D>"world"}, "bar"=3D>{"hello"=3D>"w=
orld"}}.
>=20
>  13) Failure:
> test_override(Psych::TestMergeKeys) [C:/ruby/trunk/test/psych/test_merge_=
keys.rb:69]:
> Expected {"x"=3D>1, "y"=3D>2, "r"=3D>10, "label"=3D>"center/big"}, not {"=
<<"=3D>[{"r"=3D>10}, {"x"=3D>0, "y"=3D>2}, {"r"=3D>1}], "x"=3D>1, "label"=
=3D>"center/big"}.
>=20
>  14) Failure:
> test_syntax_error_twice(Psych::TestParser) [C:/ruby/trunk/test/psych/test=
_parser.rb:136]:
> [Psych::SyntaxError] exception expected, not
> Class: <NoMemoryError>
> 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_erro=
r_twice'
> ---------------
>=20
>  15) Failure:
> test_syntax_error_has_path_for_string(Psych::TestParser) [C:/ruby/trunk/t=
est/psych/test_parser.rb:145]:
> Expected /\(<unknown>\):/ to match "couldn't parse YAML at line 3 column =
0".
>=20
>  16) Failure:
> test_exception_line(Psych::TestParser) [C:/ruby/trunk/test/psych/test_par=
ser.rb:170]:
> Expected /line\ 6/ to match "couldn't parse YAML at line 5 column 9".
>=20
>  17) 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".
>=20
>  18) 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_sca=
lar'
>     ./test/runner.rb:18:in `<main>'
>=20
>  19) 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_seq=
uence'
>     ./test/runner.rb:18:in `<main>'
>=20
>  20) 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_map=
ping'
>     ./test/runner.rb:18:in `<main>'
>=20
>  21) 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_ali=
as'
>     ./test/runner.rb:18:in `<main>'
>=20
> -------------------------------------------------------------------------=
---
>=20
> test environment
>  o Windows Vista (32bit)
>  o libyaml-0.1.3
>  o Visual C++ 2010 express
>  o ruby trunk
>=20
> 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.

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

--3uo+9/B/ebqu+fSQ
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (Darwin)

iQEcBAEBAgAGBQJNO1+PAAoJEJUxcLy0/6/GfhwH/iglkMlt3lBXfyEG2zcl/V0V
opKNPxG8nIcrF5qi+qu+lxTD3SkKwoC6ny0oqxiT3mL8epGplh3o5nQcwGtpiQjA
qzkrGb7HXYctNJGvQGXYDaDEBZ0OkERmtZ7QKdcY/VgTzUlt90VBYba2my3STm4b
ei17zfwRh1kkje1aGpMLxdXylJJnvubGOQCKVPFrXgB7mKQEboq7KX5XOwD7Gknb
wyNDdMrp9/Zy/nzm0BtqobjMq+Jmui1EJNeO2KZLyuGH2hl12qbhmGAlrd5CrFcq
7wAlXd80nmTXkmGYJi4u+lpVTtEOd60LCRjvBqpSTixaYPNqEPv2cZ+Yv/SjtwI=
=SssX
-----END PGP SIGNATURE-----

--3uo+9/B/ebqu+fSQ--