summaryrefslogtreecommitdiffabout
authorSergey Poznyakoff <gray@gnu.org.ua>2010-07-23 08:04:06 (GMT)
committer Sergey Poznyakoff <gray@gnu.org.ua>2010-07-23 08:04:06 (GMT)
commit1a982159142add859927c83022ce40e03a5a8be5 (patch) (side-by-side diff)
treefe8eae71c9f5ce1bc8d8cb19dd29298088522050
parentc745039dcdc24e019205aa8d76f5231049c67b2b (diff)
downloadcpio-1a982159142add859927c83022ce40e03a5a8be5.tar.gz
cpio-1a982159142add859927c83022ce40e03a5a8be5.tar.bz2
Fix setstat testcases to work on Darwin.
* tests/setstat01.at: Set write permission on the directory before attempting to rename it. * tests/setstat02.at: Likewise.
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--tests/setstat01.at2
-rw-r--r--tests/setstat02.at2
2 files changed, 4 insertions, 0 deletions
diff --git a/tests/setstat01.at b/tests/setstat01.at
index 7fd4d99..c309381 100644
--- a/tests/setstat01.at
+++ b/tests/setstat01.at
@@ -28,6 +28,8 @@ echo "test file" > dir/file
chmod 500 dir
find dir | cpio -o --quiet > archive
+# Darwin cannot rename a directory whose permissions disallow writing.
+chmod 700 dir
mv dir old
cpio -i --quiet < archive
diff --git a/tests/setstat02.at b/tests/setstat02.at
index 5c45a4f..f069560 100644
--- a/tests/setstat02.at
+++ b/tests/setstat02.at
@@ -33,6 +33,8 @@ echo "test file" > dir/file
chmod 500 dir
find dir -depth | cpio -o --quiet > archive
+# Darwin cannot rename a directory whose permissions disallow writing.
+chmod 700 dir
mv dir old
cpio -id --quiet < archive

Return to:

Send suggestions and report system problems to the System administrator.