aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2010-07-23 11:04:06 +0300
committerSergey Poznyakoff <gray@gnu.org.ua>2010-07-23 11:04:06 +0300
commit1a982159142add859927c83022ce40e03a5a8be5 (patch)
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.
-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
28chmod 500 dir 28chmod 500 dir
29 29
30find dir | cpio -o --quiet > archive 30find dir | cpio -o --quiet > archive
31# Darwin cannot rename a directory whose permissions disallow writing.
32chmod 700 dir
31mv dir old 33mv dir old
32 34
33cpio -i --quiet < archive 35cpio -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
33chmod 500 dir 33chmod 500 dir
34 34
35find dir -depth | cpio -o --quiet > archive 35find dir -depth | cpio -o --quiet > archive
36# Darwin cannot rename a directory whose permissions disallow writing.
37chmod 700 dir
36mv dir old 38mv dir old
37 39
38cpio -id --quiet < archive 40cpio -id --quiet < archive

Return to:

Send suggestions and report system problems to the System administrator.