]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: fix exit status check in cp -u test
authorPádraig Brady <P@draigBrady.com>
Fri, 3 Feb 2023 16:37:26 +0000 (16:37 +0000)
committerPádraig Brady <P@draigBrady.com>
Fri, 3 Feb 2023 16:38:55 +0000 (16:38 +0000)
* tests/cp/preserve-link.sh: This should have been part
of commit v9.1-134-g01503ce73.

tests/cp/preserve-link.sh

index 2adaffd44ff78f92c408770727556662d150b83a..eb83b0f2b778312c9be73107873755b0f3260d48 100755 (executable)
@@ -81,7 +81,7 @@ for f in f linkm; do
 
   # Copy all the hard links across.  With cp from coreutils-8.12
   # and prior, it would sometimes mistakenly copy rather than link.
-  returns_ 1 cp -au s t || fail=1
+  cp -au s t || fail=1
 
   same_inode t/s/f t/s/linkm || fail=1
   same_inode t/s/f t/s/linke || fail=1