tests: cleanup rm -rf fails under NFS
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 3 Dec 2010 19:08:48 +0000 (11:08 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 3 Dec 2010 19:09:27 +0000 (11:09 -0800)
commitb6ef652e50f49e55871c5d08c43ee250950f1cbb
tree27b26d0e07c8935694f13180c18d40c7812a5c34
parentb5a25a996da0ed80025e6ed94ca7fe4347704864
tests: cleanup rm -rf fails under NFS

This problem was observed on RHEL 5.5 x86-64 when running as a
client of a NetApp FAS2050.
* tests/cp/cp-mv-backup: Don't leave a file descriptor open to
a file in a directory that will be cleaned up with "rm -rf".
Under NFS, when the rm unlinks that file, it is instead renamed
to .nfsXXXX and then rm cannot remove the parent directory,
and the test fails.
* tests/cp/same-file: Likewise.
tests/cp/cp-mv-backup
tests/cp/same-file