This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Fix lib/File/Compare.t test failures on Win32
authorSteve Hay <SteveHay@planit.com>
Tue, 13 Dec 2005 09:41:29 +0000 (09:41 +0000)
committerSteve Hay <SteveHay@planit.com>
Tue, 13 Dec 2005 09:41:29 +0000 (09:41 +0000)
commit8974ce1ee942c407c5080e83810eaada482b2f0f
tree60698b65c95301261df5a2b86caa13b2810f3c91
parent5cbf7fcfd7c08a8eda4c6ba4b034b3bc9fcbb874
Fix lib/File/Compare.t test failures on Win32

Change 26225, updated by 26245, added a test for another filename with
a trailing space but failed to open the new filehandle in binary mode

To compound matters, creating a file called "foo " on Win32 "succeeds"
but actually creates a file called just "foo", so we have actually
overwritten the original file with this non-binary mode version, and
hence some of the original tests started failing too!

(And because of this the new test doesn't actually add anything new on
Win32 at the moment, but right now I can't think of a filename that
would have failed under 2-arg open but succeeds with 3-arg open, which
was the purpose of this test)

p4raw-id: //depot/perl@26337
lib/File/Compare.t