summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYves Orton <yves.orton@booking.com>2014-01-31 21:31:24 +0800
committerYves Orton <yves.orton@booking.com>2014-01-31 21:31:24 +0800
commit824c07f3303ee79176c755ff7dd8e25f046e0aad (patch)
treefe5aa22b4f3f05d301168dde395301e90d593718
parent8b4a1c96a99236cf05ec1932866aa67135dc76b9 (diff)
downloadperl-824c07f3303ee79176c755ff7dd8e25f046e0aad.tar.gz
ignore vim backup files
Having tests fail because vim created a ~ file for something is just annoying.
-rw-r--r--t/porting/readme.t2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/porting/readme.t b/t/porting/readme.t
index 621643fb40..cbb2fe8425 100644
--- a/t/porting/readme.t
+++ b/t/porting/readme.t
@@ -14,7 +14,7 @@ require 't/test.pl';
open(my $fh, '<', 'Porting/README.pod') or die("Can't open Porting/README.pod: $!");
-my @porting_files = glob("Porting/*");
+my @porting_files = grep { !/~\z/ } glob("Porting/*");
# It seems that dying here is nicer than having several dozen failing tests
# later. But that assumes one will see the message from die.
die "Can't get contents of Porting/ directory.\n" unless @porting_files > 1;