diff options
-rwxr-xr-x | tests/cp/cp-parents | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/cp/cp-parents b/tests/cp/cp-parents index de14ff914..313ead5db 100755 --- a/tests/cp/cp-parents +++ b/tests/cp/cp-parents @@ -41,8 +41,8 @@ test -d d/a/b/c || fail=1 # Check that re_protect works. chmod go=w d/a cp -a --parents d/a/b/c e || fail=1 -set _ `ls -ld e/d`; shift; case $1 in drwxr-xr-x);; *) fail=1;; esac -set _ `ls -ld e/d/a`; shift; case $1 in drwx-w--w-);; *) fail=1;; esac -set _ `ls -ld e/d/a/b/c`; shift; case $1 in drwxr-xr-x);; *) fail=1;; esac +p=`ls -ld e/d|sed 's/ .*//'`; case $p in drwxr-xr-x);; *) fail=1;; esac +p=`ls -ld e/d/a|sed 's/ .*//'`; case $p in drwx-w--w-);; *) fail=1;; esac +p=`ls -ld e/d/a/b/c|sed 's/ .*//'`; case $p in drwxr-xr-x);; *) fail=1;; esac (exit $fail); exit |