diff options
Diffstat (limited to 'tests/cp')
40 files changed, 41 insertions, 41 deletions
diff --git a/tests/cp/abuse b/tests/cp/abuse index d0faba4dd..8187392b5 100755 --- a/tests/cp/abuse +++ b/tests/cp/abuse @@ -52,4 +52,4 @@ for i in dangling-dest existing-dest; do && case $(cat t) in i);; *) fail=1;; esac done -(exit $fail); exit $fail +Exit $fail diff --git a/tests/cp/acl b/tests/cp/acl index 21a7742ef..b212d0de2 100755 --- a/tests/cp/acl +++ b/tests/cp/acl @@ -60,4 +60,4 @@ cp -p a/file b/ || fail=1 acl2=`cd b && getfacl file` || framework_failure test "$acl1" = "$acl2" || fail=1 -(exit $fail); exit $fail +Exit $fail diff --git a/tests/cp/backup-1 b/tests/cp/backup-1 index 7fc165870..830e4abb5 100755 --- a/tests/cp/backup-1 +++ b/tests/cp/backup-1 @@ -41,4 +41,4 @@ test -f $file || fail=1 test -f $file_backup || fail=1 compare $file $file_backup > /dev/null || fail=1 -(exit $fail); exit $fail +Exit $fail diff --git a/tests/cp/backup-dir b/tests/cp/backup-dir index 88de81adf..313ec40a7 100755 --- a/tests/cp/backup-dir +++ b/tests/cp/backup-dir @@ -34,4 +34,4 @@ cp -ab x y || fail=1 test -d y/x || fail=1 test -d y/x~ && fail=1 -(exit $fail); exit $fail +Exit $fail diff --git a/tests/cp/backup-is-src b/tests/cp/backup-is-src index 3703350ad..bc91d6666 100755 --- a/tests/cp/backup-is-src +++ b/tests/cp/backup-is-src @@ -37,4 +37,4 @@ EOF compare out2 exp || fail=1 -(exit $fail); exit $fail +Exit $fail diff --git a/tests/cp/cp-HL b/tests/cp/cp-HL index bdc34d9a5..09257fb00 100755 --- a/tests/cp/cp-HL +++ b/tests/cp/cp-HL @@ -42,4 +42,4 @@ cat dest-dir/src-dir/slink > /dev/null 2>&1 && fail=1 # FIXME: test -L, too. -(exit $fail); exit $fail +Exit $fail diff --git a/tests/cp/cp-a-selinux b/tests/cp/cp-a-selinux index 03d515399..2f4af3593 100755 --- a/tests/cp/cp-a-selinux +++ b/tests/cp/cp-a-selinux @@ -80,4 +80,4 @@ EOF compare out exp || fail=1 -(exit $fail); exit $fail +Exit $fail diff --git a/tests/cp/cp-deref b/tests/cp/cp-deref index 89584502c..1f7edd8ea 100755 --- a/tests/cp/cp-deref +++ b/tests/cp/cp-deref @@ -36,4 +36,4 @@ cp -RL a b d || fail=1 test -d a/c || fail=1 test -d b/c || fail=1 -(exit $fail); exit $fail +Exit $fail diff --git a/tests/cp/cp-i b/tests/cp/cp-i index a248eaa9e..94284bee7 100755 --- a/tests/cp/cp-i +++ b/tests/cp/cp-i @@ -31,4 +31,4 @@ fail=0 # coreutils 6.2 cp would neglect to prompt in this case. echo n | cp -iR a b 2>/dev/null || fail=1 -(exit $fail); exit $fail +Exit $fail diff --git a/tests/cp/cp-mv-backup b/tests/cp/cp-mv-backup index 4280e481a..a8c55c9b3 100755 --- a/tests/cp/cp-mv-backup +++ b/tests/cp/cp-mv-backup @@ -94,4 +94,4 @@ sed 's/: x/:/' $expected-tmp |cat $expected-tmp - > $expected compare $expected $actual || fail=1 -(exit $fail); exit $fail +Exit $fail diff --git a/tests/cp/cp-parents b/tests/cp/cp-parents index e936f59be..bfaf747a0 100755 --- a/tests/cp/cp-parents +++ b/tests/cp/cp-parents @@ -61,4 +61,4 @@ p=`ls -ld g/sym|cut -b-10`; case $p in drwx-w--w-);; *) fail=1;; esac p=`ls -ld e/d/a/b/c|cut -b-10`; case $p in drwxr-xr-x);; *) fail=1;; esac p=`ls -ld g/sym/b/c|cut -b-10`; case $p in drwxr-xr-x);; *) fail=1;; esac -(exit $fail); exit $fail +Exit $fail diff --git a/tests/cp/deref-slink b/tests/cp/deref-slink index d2e953752..112802745 100755 --- a/tests/cp/deref-slink +++ b/tests/cp/deref-slink @@ -30,4 +30,4 @@ ln -s slink-target slink || framework_failure fail=0 cp -d f slink || fail=1 -(exit $fail); exit $fail +Exit $fail diff --git a/tests/cp/dir-rm-dest b/tests/cp/dir-rm-dest index c97e709f2..4e540bc7a 100755 --- a/tests/cp/dir-rm-dest +++ b/tests/cp/dir-rm-dest @@ -32,4 +32,4 @@ cp -R --remove-destination d e || fail=1 # ...and again, with an existing destination. cp -R --remove-destination d e || fail=1 -(exit $fail); exit $fail +Exit $fail diff --git a/tests/cp/dir-slash b/tests/cp/dir-slash index 0e591cedb..db6e17cb9 100755 --- a/tests/cp/dir-slash +++ b/tests/cp/dir-slash @@ -37,4 +37,4 @@ test -r dir2/file && fail=1 test -r dir2/dir1/file || fail=1 test -r dir1/file || fail=1 -(exit $fail); exit $fail +Exit $fail diff --git a/tests/cp/dir-vs-file b/tests/cp/dir-vs-file index 317c69a9c..50b940a43 100755 --- a/tests/cp/dir-vs-file +++ b/tests/cp/dir-vs-file @@ -35,4 +35,4 @@ cp -R dir file 2>/dev/null && fail=1 # In 4.0.35, it was. test -f file || fail=1 -(exit $fail); exit $fail +Exit $fail diff --git a/tests/cp/existing-perm-race b/tests/cp/existing-perm-race index d428e99bf..d1bc76845 100755 --- a/tests/cp/existing-perm-race +++ b/tests/cp/existing-perm-race @@ -89,4 +89,4 @@ case $mode in *) fail=1;; esac -(exit $fail); exit $fail +Exit $fail diff --git a/tests/cp/fail-perm b/tests/cp/fail-perm index f2dabd155..bf37ee8d1 100755 --- a/tests/cp/fail-perm +++ b/tests/cp/fail-perm @@ -61,4 +61,4 @@ compare out exp || fail=1 chmod 700 D -(exit $fail); exit $fail +Exit $fail diff --git a/tests/cp/file-perm-race b/tests/cp/file-perm-race index 1b6eff6bf..9745a1476 100755 --- a/tests/cp/file-perm-race +++ b/tests/cp/file-perm-race @@ -57,4 +57,4 @@ esac wait $cp_pid || fail=1 -(exit $fail); exit $fail +Exit $fail diff --git a/tests/cp/into-self b/tests/cp/into-self index 53dfe5697..ee3fcf5fd 100755 --- a/tests/cp/into-self +++ b/tests/cp/into-self @@ -42,4 +42,4 @@ EOF compare out exp || fail=1 -(exit $fail); exit $fail +Exit $fail diff --git a/tests/cp/link b/tests/cp/link index a1cf92622..20b2eed0d 100755 --- a/tests/cp/link +++ b/tests/cp/link @@ -33,4 +33,4 @@ fail=0 cp -f --link src dest || fail=1 cp -f --symbolic-link src dest2 || fail=1 -(exit $fail); exit $fail +Exit $fail diff --git a/tests/cp/link-no-deref b/tests/cp/link-no-deref index 3ff16e036..561aa6a2b 100755 --- a/tests/cp/link-no-deref +++ b/tests/cp/link-no-deref @@ -31,4 +31,4 @@ fail=0 # with link being applied to the dangling symlink. cp --link --no-dereference dangling-slink d2 || fail=1 -(exit $fail); exit $fail +Exit $fail diff --git a/tests/cp/link-preserve b/tests/cp/link-preserve index 0dd96f05e..309c05121 100755 --- a/tests/cp/link-preserve +++ b/tests/cp/link-preserve @@ -87,4 +87,4 @@ test "$mode" = "-rwx------" || fail=1 umask 022 # -------------------------------------- -(exit $fail); exit $fail +Exit $fail diff --git a/tests/cp/no-deref-link1 b/tests/cp/no-deref-link1 index e92c40cc3..f18ae0374 100755 --- a/tests/cp/no-deref-link1 +++ b/tests/cp/no-deref-link1 @@ -41,4 +41,4 @@ test $? = 1 || fail=1 test "`cat a/foo`" = $msg || fail=1 -(exit $fail); exit $fail +Exit $fail diff --git a/tests/cp/no-deref-link2 b/tests/cp/no-deref-link2 index 20b87fc98..8fbf9bff8 100755 --- a/tests/cp/no-deref-link2 +++ b/tests/cp/no-deref-link2 @@ -41,4 +41,4 @@ test $? = 1 || fail=1 test "`cat a`" = $msg || fail=1 -(exit $fail); exit $fail +Exit $fail diff --git a/tests/cp/no-deref-link3 b/tests/cp/no-deref-link3 index 32966ca0e..a177bacf2 100755 --- a/tests/cp/no-deref-link3 +++ b/tests/cp/no-deref-link3 @@ -38,4 +38,4 @@ test $? = 1 || fail=1 test "`cat a`" = $msg || fail=1 -(exit $fail); exit $fail +Exit $fail diff --git a/tests/cp/parent-perm b/tests/cp/parent-perm index a7da5e2e0..01ca2b811 100755 --- a/tests/cp/parent-perm +++ b/tests/cp/parent-perm @@ -53,4 +53,4 @@ for dir in a a/b a/b/d; do fail=1 done -(exit $fail); exit $fail +Exit $fail diff --git a/tests/cp/parent-perm-race b/tests/cp/parent-perm-race index c84f2e9f3..196a40549 100755 --- a/tests/cp/parent-perm-race +++ b/tests/cp/parent-perm-race @@ -64,4 +64,4 @@ do wait $cp_pid || fail=1 done -(exit $fail); exit $fail +Exit $fail diff --git a/tests/cp/perm b/tests/cp/perm index aed3a722b..8073ac005 100755 --- a/tests/cp/perm +++ b/tests/cp/perm @@ -75,4 +75,4 @@ for u in 31 37 2; do done done -(exit $fail); exit $fail +Exit $fail diff --git a/tests/cp/preserve-2 b/tests/cp/preserve-2 index 667b50392..19cb5fd9c 100755 --- a/tests/cp/preserve-2 +++ b/tests/cp/preserve-2 @@ -29,4 +29,4 @@ fail=0 cp --preserve=mode,links f g || fail=1 -(exit $fail); exit $fail +Exit $fail diff --git a/tests/cp/preserve-gid b/tests/cp/preserve-gid index d7f86e030..2fb738438 100755 --- a/tests/cp/preserve-gid +++ b/tests/cp/preserve-gid @@ -42,7 +42,7 @@ t0() { : else echo "$0: $* $f b: $u $g != $s" 1>&2 - (exit 1); exit 1 + Exit 1 fi fi } @@ -103,4 +103,4 @@ t1 c0 "$nameless_uid" "$nameless_gid1" cp -p t1 c1 "$nameless_uid" "$nameless_gid2" cp -p fail=0 -(exit $fail); exit $fail +Exit $fail diff --git a/tests/cp/proc-zero-len b/tests/cp/proc-zero-len index 33e5802a5..586720a68 100755 --- a/tests/cp/proc-zero-len +++ b/tests/cp/proc-zero-len @@ -42,4 +42,4 @@ test -s exp && { rm -f exp; echo nonempty > exp; } compare out exp || fail=1 -(exit $fail); exit $fail +Exit $fail diff --git a/tests/cp/r-vs-symlink b/tests/cp/r-vs-symlink index 08070f7d9..8596bb729 100755 --- a/tests/cp/r-vs-symlink +++ b/tests/cp/r-vs-symlink @@ -43,4 +43,4 @@ case $mode in *) fail=1;; esac -(exit $fail); exit $fail +Exit $fail diff --git a/tests/cp/same-file b/tests/cp/same-file index e5cc8237e..32bdc2a6e 100755 --- a/tests/cp/same-file +++ b/tests/cp/same-file @@ -225,4 +225,4 @@ fail=0; compare $expected $actual 1>&2 || fail=1 -(exit $fail); exit $fail +Exit $fail diff --git a/tests/cp/slink-2-slink b/tests/cp/slink-2-slink index c86a251dd..4fc0ef50a 100755 --- a/tests/cp/slink-2-slink +++ b/tests/cp/slink-2-slink @@ -34,4 +34,4 @@ fail=0 cp --update --no-dereference a b || fail=1 cp --update --no-dereference c d || fail=1 -(exit $fail); exit $fail +Exit $fail diff --git a/tests/cp/sparse b/tests/cp/sparse index 2c2024ce3..e07f05130 100755 --- a/tests/cp/sparse +++ b/tests/cp/sparse @@ -38,4 +38,4 @@ cp --sparse=always sparse copy || fail=1 # Ensure that the copy has the same block count as the original. test `stat --printf %b copy` -le `stat --printf %b sparse` || fail=1 -(exit $fail); exit $fail +Exit $fail diff --git a/tests/cp/special-bits b/tests/cp/special-bits index c75fb5014..ef7755bd4 100755 --- a/tests/cp/special-bits +++ b/tests/cp/special-bits @@ -52,4 +52,4 @@ set _ `ls -l c`; shift; p1=$1 set _ `ls -l c2`; shift; p2=$1 test $p1 = $p2 && fail=1 -(exit $fail); exit $fail +Exit $fail diff --git a/tests/cp/special-f b/tests/cp/special-f index 054ad70b4..0556f01a7 100755 --- a/tests/cp/special-f +++ b/tests/cp/special-f @@ -37,4 +37,4 @@ cp -R fifo e || fail=1 cp -Rf fifo e || fail=1 test -p fifo || fail=1 -(exit $fail); exit $fail +Exit $fail diff --git a/tests/cp/src-base-dot b/tests/cp/src-base-dot index 09aedb21f..5552944bb 100755 --- a/tests/cp/src-base-dot +++ b/tests/cp/src-base-dot @@ -34,4 +34,4 @@ EOF compare out exp || fail=1 -(exit $fail); exit $fail +Exit $fail diff --git a/tests/cp/symlink-slash b/tests/cp/symlink-slash index 893a413e7..16b1c2669 100755 --- a/tests/cp/symlink-slash +++ b/tests/cp/symlink-slash @@ -38,4 +38,4 @@ set `ls -l s` # call and so cp ends up dereferencing the symlink and copying the directory. test "$*" = 'total 0' && : || fail=1 -(exit $fail); exit $fail +Exit $fail diff --git a/tests/cp/thru-dangling b/tests/cp/thru-dangling index 7caeed33b..d7bffd8e0 100755 --- a/tests/cp/thru-dangling +++ b/tests/cp/thru-dangling @@ -43,4 +43,4 @@ cat no-such >> out || fail=1 compare out exp || fail=1 -(exit $fail); exit $fail +Exit $fail |