mirror of
git://git.sv.gnu.org/coreutils.git
synced 2026-02-13 02:42:18 +02:00
tests: use command -v to identify binary
* tests/misc/coreutils.sh: Be more flexibile by using `command -v` to identify the binary to be executed, rather than linking directly to the built binary.
This commit is contained in:
@@ -34,7 +34,7 @@ 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 $abs_top_builddir/src/coreutils$EXEEXT blah || framework_failure_
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user