From: Michael G. Schwern <schwern@pobox.com>
Date: Sat, 14 Apr 2001 22:05:32 +0000 (+0100)
Subject: Doesn't skip RCS files
X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=dd69b62cec547dc0162db14f1d9a0bb499a8fa04;p=p5sagit%2Fp5-mst-13.2.git

Doesn't skip RCS files
Message-ID: <20010414220531.A30178@blackrider.blackstar.co.uk>

p4raw-id: //depot/perl@9710
---

diff --git a/t/pragma/warnings.t b/t/pragma/warnings.t
index e2c7500..591f039 100644
--- a/t/pragma/warnings.t
+++ b/t/pragma/warnings.t
@@ -27,7 +27,7 @@ else
 my $files = 0;
 foreach my $file (@w_files) {
 
-    next if /(~|\.orig|,v)$/;
+    next if $file =~ /(~|\.orig|,v)$/;
 
     open F, "<$file" or die "Cannot open $file: $!\n" ;
     my $line = 0;