[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] tests: cp-parents: don't let a failing chmod go unnoticed
From: |
Jim Meyering |
Subject: |
[PATCH] tests: cp-parents: don't let a failing chmod go unnoticed |
Date: |
Mon, 19 Sep 2011 11:42:58 +0200 |
FYI,
>From 6c93cd451271f80e3261b53afbcb18d2971fcb01 Mon Sep 17 00:00:00 2001
From: Jim Meyering <address@hidden>
Date: Mon, 19 Sep 2011 10:53:45 +0200
Subject: [PATCH] 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.
---
tests/cp/cp-parents | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/tests/cp/cp-parents b/tests/cp/cp-parents
index fcb5c44..1a1e372 100755
--- a/tests/cp/cp-parents
+++ b/tests/cp/cp-parents
@@ -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
--
1.7.7.rc0.362.g5a14
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH] tests: cp-parents: don't let a failing chmod go unnoticed,
Jim Meyering <=