From 937b1ba642ec45dfdd3390771d641d28017ff650 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 18 Dec 2016 11:19:15 +0100 Subject: [PATCH] tests: use just-built sed in more places * cfg.mk (PATH): Prepend $(srcdir)/src, so that we use the just- built sed also when running commands like those of "make distcheck". Tested by running this in a just-built directory: f=sed/sed; printf '%s\n' '#!/bin/sh' 'sleep 9h' > $f; chmod a+x $f and then verifying that nearly every "make syntax-check" rule hangs. --- cfg.mk | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cfg.mk b/cfg.mk index a54498f..f0e4085 100644 --- a/cfg.mk +++ b/cfg.mk @@ -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)/sed:${PATH} + # Used in maint.mk's web-manual rule manual_title = GNU Sed: a stream editor -- 2.8.0-rc2