Testsuite: also handle -XX in version
authorPhil Pennock <pdp@exim.org>
Mon, 10 Oct 2011 03:53:48 +0000 (23:53 -0400)
committerPhil Pennock <pdp@exim.org>
Mon, 10 Oct 2011 03:53:48 +0000 (23:53 -0400)
test/patchexim

index 91bf98a..d3f39bc 100755 (executable)
@@ -16,7 +16,7 @@ open(OUT, ">eximdir/exim") || die "** Failed to open eximdir/exim: $!\n";
 while(<IN>)
   {
   s/>>>running<<</<<<testing>>>/;
-  s/(\d+\.\d+(?:\.\d+)?([_-]RC\d+|[_-]dev)?(?:[0-9a-fA-F-]*)\0<<eximversion>>)/"x.yz\0" . ("*" x (length($1) - 5))/e;
+  s/(\d+\.\d+(?:\.\d+)?([_-]RC\d+|[_-]dev)?(?:[0-9a-fA-F-]*)(?:-XX)?\0<<eximversion>>)/"x.yz\0" . ("*" x (length($1) - 5))/e;
   print OUT;
   }