Skip Menu |

This queue is for tickets about the Dir-Project CPAN distribution.

Maintainer(s)' notes

Testing

Report information
The Basics
Id: 46421
Status: resolved
Priority: 0/
Queue: Dir-Project

People
Owner: Nobody in particular
Requestors: sk [...] computer-leipzig.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 3.013
Fixed in: 3.014



Subject: trailing space in META.yml breaks build
t/03_spaces.t checks for triling spaces in all files from MANIFEST. But META.yml contains such whitespace. A patch for testfile is provided to skip META.yml in this test.
Subject: trailing_space_in_META.yml.patch
--- t/03_spaces.t.orig 2009-05-27 23:58:22.000000000 +0200 +++ t/03_spaces.t 2009-05-28 00:02:36.000000000 +0200 @@ -12,10 +12,13 @@ BEGIN { require "t/test_utils.pl"; } eval { use ExtUtils::Manifest; }; my $manifest = ExtUtils::Manifest::maniread(); -plan tests => (1 + (keys %{$manifest})); + +my %skipfor = ('META.yml' => 1); +plan tests => (1 + (keys %{$manifest}) - (keys %skipfor)); ok(1); foreach my $filename (keys %{$manifest}) { + next if exists $skipfor{$filename}; print "Space test of: $filename\n"; my $wholefile = wholefile($filename); ok($wholefile && $wholefile !~ /[ \t]+\n/);