t/lib/common.pl: Ignore editor droppings
authorFather Chrysostomos <[email protected]>
Sun, 31 Jul 2016 06:19:11 +0000 (23:19 -0700)
committerFather Chrysostomos <[email protected]>
Sun, 31 Jul 2016 13:35:05 +0000 (06:35 -0700)
This bites me all the time.

t/lib/common.pl

index 4ff2b09..561e1ff 100644 (file)
@@ -27,7 +27,7 @@ if (@ARGV) {
     print "ARGV = [@ARGV]\n";
     @w_files = map { "./lib/$pragma_name/$_" } @ARGV;
 } else {
-    @w_files = sort grep !/\.rej\z/,
+    @w_files = sort grep !/( \.rej | ~ | \ \(Autosaved\)\.txt ) \z/nx,
                         glob catfile(curdir(), "lib", $pragma_name, "*");
 }