From fb9a0fa05a7201a8c1e1031a8a0b89ffe0d7b73c Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Tue, 10 Mar 2026 15:53:42 +0100 Subject: [PATCH] tests: ensure getlimits is on PATH for reused GNU builds --- util/build-gnu.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/util/build-gnu.sh b/util/build-gnu.sh index 3f6ec60d817..bd84e29a86a 100755 --- a/util/build-gnu.sh +++ b/util/build-gnu.sh @@ -160,6 +160,10 @@ else touch gnu-built fi +# Keep getlimits available on PATH for GNU shell and Perl tests even when +# reusing an existing GNU build directory. +test -f src/getlimits && cp -f src/getlimits "${UU_BUILD_DIR}" + # Keep Makefile.in newer than the local.mk files we just modified, # and Makefile newer than Makefile.in, so make won't re-run # automake or config.status and undo our edits.