]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
tests: make silent-custom regex a little more robust
authorMike Frysinger <vapier@gentoo.org>
Thu, 24 Feb 2022 05:52:08 +0000 (00:52 -0500)
committerMike Frysinger <vapier@gentoo.org>
Thu, 24 Feb 2022 05:52:08 +0000 (00:52 -0500)
Fixes automake bug https://bugs.gnu.org/32800.

Have the regex match the entire path with word boundaries on both
sides.  This should reduce false positives when the full cwd happens
to match parent directories.

* t/silent-custom.sh: Update the header output regex.

t/silent-custom.sh

index 01cf464b99eb1ae0d3cbbd82ffd212f1fc805925..977255b1312e4c572c28a426e9a6c68cff4de177 100644 (file)
@@ -74,7 +74,7 @@ do_check ()
     $FGREP 'cp ' output && exit 1
     $FGREP 'generate-header' output && exit 1
     $FGREP 'rm -f' output && exit 1
-    grep '[012]\.h' output && exit 1
+    grep '\bsub/[012]\.h\b' output && exit 1
     grep '^ XGEN    foo$' output
     grep '^ GEN     \[headers\]$' output
   else