From a61eaf68cf868e1874de168b1de5f2efcbb3cfb4 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Thu, 24 Feb 2022 00:52:08 -0500 Subject: 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. --- t/silent-custom.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.1