]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: coreutils: remove redundant validity check
authoroech3 <79379754+oech3@users.noreply.github.com>
Thu, 12 Feb 2026 17:07:30 +0000 (17:07 +0000)
committerPádraig Brady <P@draigBrady.com>
Thu, 12 Feb 2026 17:12:16 +0000 (17:12 +0000)
* tests/misc/coreutils.sh: Remove the check for non-empty coreutils.h,
as the existing `print_ver_ coreutils` is sufficient to determine
support for single binary mode.
https://github.com/coreutils/coreutils/pull/189

tests/misc/coreutils.sh

index 5cf5fce6985d379dbaf31559606a7380ddc4e5bc..955b3681a9076afbe5d46e2d10c1210456b0f0d6 100755 (executable)
@@ -20,8 +20,7 @@
 . "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
 print_ver_ coreutils
 
-test -s "$abs_top_builddir/src/coreutils.h" \
- || skip_ 'multicall binary is disabled'
+cp -s "$(command -v coreutils)" blah || skip_ 'multicall binary is disabled'
 
 # Yes outputs all its params so is good to verify argv manipulations
 echo 'y' > exp &&
@@ -34,7 +33,6 @@ echo "coreutils: unknown program 'blah'" > exp || framework_failure_
 returns_ 1 coreutils --coreutils-prog='blah' --help 2>err || fail=1
 compare exp err || fail=1
 
-ln -s "$(command -v coreutils)" blah || framework_failure_
 returns_ 1 ./blah 2>err || fail=1
 compare exp err || fail=1
 returns_ 1 ./blah --version 2>err || fail=1