Don't assume that we can remove the working directory in tests.

This commit is contained in:
Paul Eggert committed 2004-07-28 00:06:57 +00:00
1 parent eba892da25
commit 43309787ce
4 files changed
+26 -9

No files matched your search

+5
View File
@@ -1,5 +1,10 @@
2004-07-27 Paul Eggert <eggert@cs.ucla.edu>
* tests/readlink/can-e: Don't assume that we can remove the
working directory: this isn't possible under Solaris 8, say.
* tests/readlink/can-f: Likewise.
* tests/readlink/can-m: Likewise.
* src/copy.c (copy_internal): find_backup_file_name no longer
returns NULL, so don't bother to check for this.
* src/cp.c (do_copy): Likewise.
+7 -3
View File
@@ -39,9 +39,13 @@ fi
fail=1
while :; do
cd "$pwd/$tmp/removed" || break
rmdir ../removed || break
v=`readlink -e .` && 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 -e .` && break
test -z "$v" || break
fi
cd "$pwd/$tmp" || break
fail=0
+7 -3
View File
@@ -39,9 +39,13 @@ fi
fail=1
while :; do
cd "$pwd/$tmp/removed" || break
rmdir ../removed || break
v=`readlink -f .` && 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 -f .` && break
test -z "$v" || break
fi
cd "$pwd/$tmp" || break
fail=0
+7 -3
View File
@@ -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