summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtests/mv/i-210
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/mv/i-2 b/tests/mv/i-2
index 40e229fc4..4113d9fdf 100755
--- a/tests/mv/i-2
+++ b/tests/mv/i-2
@@ -32,6 +32,16 @@ framework_failure=0
mkdir $tmp || framework_failure=1
cd $tmp
+touch file || framework_failure=1
+chmod u-w file || framework_failure=1
+(echo foo >> file) >/dev/null 2>&1 && {
+ echo '********************************************'
+ echo "$0: NOTICE: This test case cannot be run as root."
+ echo '********************************************'
+ exit 77
+}
+
+
for i in a b c d e f g h; do
echo $i > $i || framework_failure=1
done