mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
tests: cp: ensure cp rejects --link combined with --symbolic-link
Reported at https://github.com/uutils/coreutils/issues/15987 * tests/cp/link.sh: Add test cases. Link: https://github.com/coreutils/coreutils/pull/412
This commit is contained in:
1 parent
e9de147d5a
commit
69a724b968
1 file changed
+6
@@ -28,4 +28,10 @@ touch dest2 || framework_failure_
|
||||
cp -f --link src dest || fail=1
|
||||
cp -f --symbolic-link src dest2 || fail=1
|
||||
|
||||
# --link and --symbolic-link are mutually exclusive.
|
||||
returns_ 1 cp -s -l src new 2> err || fail=1
|
||||
test -e new && fail=1
|
||||
returns_ 1 cp --link --symbolic-link src new 2> err || fail=1
|
||||
test -e new && fail=1
|
||||
|
||||
Exit $fail
|
||||
Reference in new issue
Block a user