diff options
author | Jim Meyering <meyering@fb.com> | 2016-12-05 04:15:24 -0800 |
---|---|---|
committer | Jim Meyering <meyering@fb.com> | 2016-12-13 17:58:26 -0800 |
commit | eec6ab399159b8c3caec722d956531a4e799a84c (patch) | |
tree | 44fa14f8491e32499ca853c6d36a0edb29443543 /cfg.mk | |
parent | 84d6ae06c287eb4b7254fa85d6b771fd8b4dffc4 (diff) | |
download | grep-eec6ab399159b8c3caec722d956531a4e799a84c.tar.gz |
tests: use just-built grep in more places
* cfg.mk (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.
Diffstat (limited to 'cfg.mk')
-rw-r--r-- | cfg.mk | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -14,6 +14,11 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. +# 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 maint.mk's web-manual rule manual_title = GNU Grep: Print lines matching a pattern |