diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2010-07-23 11:04:06 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2010-07-23 11:04:06 +0300 |
commit | 1a982159142add859927c83022ce40e03a5a8be5 (patch) | |
tree | fe8eae71c9f5ce1bc8d8cb19dd29298088522050 | |
parent | c745039dcdc24e019205aa8d76f5231049c67b2b (diff) | |
download | cpio-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.at | 2 | ||||
-rw-r--r-- | tests/setstat02.at | 2 |
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 | |||
28 | chmod 500 dir | 28 | chmod 500 dir |
29 | 29 | ||
30 | find dir | cpio -o --quiet > archive | 30 | find dir | cpio -o --quiet > archive |
31 | # Darwin cannot rename a directory whose permissions disallow writing. | ||
32 | chmod 700 dir | ||
31 | mv dir old | 33 | mv dir old |
32 | 34 | ||
33 | cpio -i --quiet < archive | 35 | 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 | |||
33 | chmod 500 dir | 33 | chmod 500 dir |
34 | 34 | ||
35 | find dir -depth | cpio -o --quiet > archive | 35 | find dir -depth | cpio -o --quiet > archive |
36 | # Darwin cannot rename a directory whose permissions disallow writing. | ||
37 | chmod 700 dir | ||
36 | mv dir old | 38 | mv dir old |
37 | 39 | ||
38 | cpio -id --quiet < archive | 40 | cpio -id --quiet < archive |