From: Mike Frysinger Date: Thu, 24 Feb 2022 05:52:08 +0000 (-0500) Subject: tests: make silent-custom regex a little more robust X-Git-Tag: v1.16i~104 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a61eaf68cf868e1874de168b1de5f2efcbb3cfb4;p=thirdparty%2Fautomake.git tests: make silent-custom regex a little more robust 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. --- diff --git a/t/silent-custom.sh b/t/silent-custom.sh index 01cf464b9..977255b13 100644 --- a/t/silent-custom.sh +++ b/t/silent-custom.sh @@ -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