mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
Don't assume that we can remove the working directory in tests.
This commit is contained in:
1 parent
eba892da25
commit
43309787ce
4 files changed
+26
-9
No files matched your search
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user