aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2019-08-19 11:29:50 -0500
committerRob Landley <rob@landley.net>2019-08-19 11:29:50 -0500
commit4e1f3a4a7038e145b11acbfbd87ecd50111d8dfd (patch)
tree2f767a4af83ab39d9dbe796da503d95e97f7e053
parent81518f643d4d53b035b2cefbce25f06bd3cb5079 (diff)
downloadtoybox-4e1f3a4a7038e145b11acbfbd87ecd50111d8dfd.tar.gz
Fix bad test.
-rwxr-xr-xtests/cp.test5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/cp.test b/tests/cp.test
index af59593a..b665e47e 100755
--- a/tests/cp.test
+++ b/tests/cp.test
@@ -109,11 +109,10 @@ chmod 644 walrus
ln -s walrus woot
testing "symlink dest permissions" "cp woot carpenter && stat -c %A carpenter" \
"-rw-r--r--\n" "" ""
+testing "duplicated --preserve options" \
+ "cp --preserve=mode,mode walrus walrus2 2>&1 || echo bad" "" "" ""
rm -rf walrus woot carpenter
-# duplicated --preserve= options are fine.
-testing "--preserve=mode,mode" "cp --preserve=mode,mode walrus walrus2" "" "" ""
-
# cp -r ../source destdir
# cp -r one/two/three missing
# cp -r one/two/three two