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/);