mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-19 03:33:43 +03:00
tests: fix test for symlink
* tests/cp/preserve-gid.sh: s/-l/-L/. Reported by Kamil Dudka
This commit is contained in:
1 parent
b96b1a4728
commit
3150f4a82e
1 file changed
+1
-1
@@ -111,7 +111,7 @@ cleanup_() { rm -rf "$tmp_path"; }
|
||||
test -d /tmp && TMPDIR=/tmp
|
||||
tmp_path=$(mktemp -d) || fail_ "failed to create temporary directory"
|
||||
if test -x "$abs_path_dir_/coreutils" &&
|
||||
{ test -l "$abs_path_dir_/cp" ||
|
||||
{ test -L "$abs_path_dir_/cp" ||
|
||||
test $(wc -l < "$abs_path_dir_/cp") = 1; } then
|
||||
# if configured with --enable-single-binary we need to use the single binary
|
||||
cp "$abs_path_dir_/coreutils" "$tmp_path/cp" || framework_failure_
|
||||
|
||||
Reference in new issue
Block a user