Fix regex matching for modification time warnings.
authorPaul Smith <psmith@gnu.org>
Tue, 10 Sep 2002 22:39:18 +0000 (22:39 +0000)
committerPaul Smith <psmith@gnu.org>
Tue, 10 Sep 2002 22:39:18 +0000 (22:39 +0000)
The ones we had were weird, and failed for multiple warnings in a
single file.

tests/test_driver.pl

index a3d4d4edbb651f468ac72231ebb6bcde0fc32505..0130605acc8037ab03a74e91d7a4d6a1f2731802 100644 (file)
@@ -588,10 +588,8 @@ sub compare_output
 
   # For make, get rid of any time skew error before comparing--too bad this
   # has to go into the "generic" driver code :-/
-  $slurp =~ s/^.*modification time .*in the future.*\n//g;
-  $slurp =~ s/\n.*modification time .*in the future.*//g;
-  $slurp =~ s/^.*Clock skew detected.*\n//g;
-  $slurp =~ s/\n.*Clock skew detected.*//g;
+  $slurp =~ s/^.*modification time .*in the future.*\n//gm;
+  $slurp =~ s/^.*Clock skew detected.*\n//gm;
 
   if ($slurp eq $answer)
   {