X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FExtUtils%2FManifest.t;h=f531406a4488242ce235a56e3a802e6de1cc05a3;hb=8c7f0036c6170bb0e341d84874bdb51f472a6afb;hp=a1452b96456e95fea9d888cb156dfee6bc0fda92;hpb=0300da759abdff9574616487473c72790a5d8244;p=p5sagit%2Fp5-mst-13.2.git diff --git a/lib/ExtUtils/Manifest.t b/lib/ExtUtils/Manifest.t index a1452b9..f531406 100644 --- a/lib/ExtUtils/Manifest.t +++ b/lib/ExtUtils/Manifest.t @@ -19,7 +19,7 @@ my @files; sub add_file { my ($file, $data) = @_; $data ||= 'foo'; - open( my $T, ">$file") or return; + open( my $T, '>', $file) or return; print $T $data; push @files, $file; } @@ -55,10 +55,10 @@ ok( add_file('foo'), 'add a temporary file' ); # there shouldn't be a MANIFEST there my ($res, $warn) = catch_warning( \&mkmanifest ); -is( $warn, <catfile( 'moretest', 'quux' ); +$quux =~ s#\\#/#g; +$quux = VMS::Filespec::unixify($quux) if $^O eq 'VMS'; add_file( $quux, 'quux' ); ok( exists( ExtUtils::Manifest::manifind()->{$quux} ), "manifind found $quux" ); # only MANIFEST and foo are in the manifest my $files = maniread(); is( keys %$files, 2, 'two files found' ); -is( join(' ', sort keys %$files), 'MANIFEST foo', 'both files found' ); +is( join(' ', sort { lc($a) cmp lc($b) } keys %$files), 'foo MANIFEST', 'both files found' ); # poison the manifest, and add a comment that should be reported add_file( 'MANIFEST', 'none #none' ); @@ -129,7 +131,7 @@ chomp($warn); # the copy should have given one warning and one error is($warn, 'Skipping MANIFEST.SKIP', 'warned about MANIFEST.SKIP' ); -like( $@, qr/^Can't read none: No such file or directory/, +like( $@, qr/^Can't read none: /, 'carped about none' ); # tell ExtUtils::Manifest to use a different file @@ -149,5 +151,7 @@ END { # now get rid of the parent directory ok( chdir( $cwd ), 'return to parent directory' ); + unlink('mantest/MANIFEST'); remove_dir( 'mantest' ); } +