diff options
authorJim Meyering <>2016-12-05 12:15:24 (GMT)
committerJim Meyering <>2016-12-14 01:58:26 (GMT)
commiteec6ab399159b8c3caec722d956531a4e799a84c (patch)
parent84d6ae06c287eb4b7254fa85d6b771fd8b4dffc4 (diff)
tests: use just-built grep in more places
* (PATH): Prepend $(srcdir)/src, so that we use the just- built grep also when running commands like those of "make distcheck". This would have avoided the recently-luckily-noticed infloop bug. Tested by running this in a just-built directory: f=src/grep; printf '%s\n' '#!/bin/sh' 'sleep 9h' > $f; chmod a+x $f and then verifying that nearly every "make syntax-check" rule hangs.
1 files changed, 5 insertions, 0 deletions
diff --git a/ b/
index aa4ea85..43205a6 100644
--- a/
+++ b/
@@ -14,6 +14,11 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <>.
+# Cause the tool(s) built by this package to be used also when running
+# commands via e.g., "make syntax-check". Doing this a little sooner
+# would have avoided a grep infloop bug.
+export PATH := $(srcdir)/src:${PATH}
# Used in's web-manual rule
manual_title = GNU Grep: Print lines matching a pattern