From: Pádraig Brady
Date: Wed, 12 Nov 2025 13:25:26 +0000 (+0000)
Subject: tests: env --argv0: fix false failure with symlinked single binary
X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3b6efd5557807de97d9ef729646990ff58507d98;p=thirdparty%2Fcoreutils.git
tests: env --argv0: fix false failure with symlinked single binary
* tests/env/env.sh: Always pass --coreutils-prog=true so that the
program to run can be determined with --enable-single-binary=symlinks.
Also actually verify the expected verbose output.
Reported by the Alpine Linux project.
---
diff --git a/tests/env/env.sh b/tests/env/env.sh
index c838a49a27..a76b401328 100755
--- a/tests/env/env.sh
+++ b/tests/env/env.sh
@@ -165,12 +165,14 @@ test "$exp" = "$got" || fail=1
# Verify argv0 overriding
for arg in 'argv0' ''; do
-env -v -a short --argv0=$arg true 2>err || fail=1
+env -v -a short --argv0=$arg true --coreutils-prog=true 2>err || fail=1
cat <