diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2004-07-28 00:06:57 +0000 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2004-07-28 00:06:57 +0000 |
commit | 43309787ced3ec53d6cda5deaa55d75c712520cb (patch) | |
tree | 7c4745d99a8351831cf7e7c5ebdec49772f6cf77 /tests/readlink/can-m | |
parent | eba892da258be5ca8c31135a1ea6171ae5cdda38 (diff) | |
download | coreutils-43309787ced3ec53d6cda5deaa55d75c712520cb.tar.xz |
Don't assume that we can remove the working directory in tests.
Diffstat (limited to 'tests/readlink/can-m')
-rwxr-xr-x | tests/readlink/can-m | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/tests/readlink/can-m b/tests/readlink/can-m index cf2de5d52..757e3bcb6 100755 --- a/tests/readlink/can-m +++ b/tests/readlink/can-m @@ -39,9 +39,13 @@ fi fail=1 while :; do cd "$pwd/$tmp/removed" || break - rmdir ../removed || break - v=`readlink -m .` && break - test -z "$v" || break + + # Skip this test if the system doesn't let you remove the working directory. + if rmdir ../removed 2>/dev/null; then + v=`readlink -m .` && break + test -z "$v" || break + fi + cd "$pwd/$tmp" || break fail=0 |