tests: cp-parents: don't let a failing chmod go unnoticed

* tests/cp/cp-parents: If somehow a chmod set-up command failed,
subsequent tests would fail in a harder-to-diagnose manner.
This commit is contained in:
Jim Meyering committed 2011-09-19 10:53:45 +02:00
1 parent e92b0dbc13
commit 6c93cd4512
1 file changed
+1 -1
+1 -1
View File
@@ -46,7 +46,7 @@ cp --parents f/g d 2>/dev/null && fail=1
test -d d/f && fail=1
# Check that re_protect works.
chmod go=w d/a
chmod go=w d/a || framework_failure_
cp -a --parents d/a/b/c e || fail=1
cp -a --parents sym/b/c g || fail=1
p=`ls -ld e/d|cut -b-10`; case $p in drwxr-xr-x);; *) fail=1;; esac