Try to recover after deleting opened files on NFS
commitbdafe367923e4772e7193d3c9a6767a95b0dd8af
authorAndrey Loskutov <loskutov@gmx.de>
Wed, 23 Jul 2014 14:01:18 +0000 (23 16:01 +0200)
committerAndrey Loskutov <loskutov@gmx.de>
Wed, 13 Jul 2016 09:33:28 +0000 (13 05:33 -0400)
tree3c274636ed329ba6edb99a86fa049dec1b06c89e
parentda310749c6c8721e448d81a6317b19be27e30ea9
Try to recover after deleting opened files on NFS

Fixes various LocalRepositoryTestCase based tests, which were failing if
executed on NFS mount, see Bug 440182. The current workaround doesn't
really checks for NFS (have no idea how to do this in Java) but allows
tests running on "/home" to run "delete" cleanup twice (second "delete"
round deletes unexpected nfs zombie files). The assumption is that this
workaround should at least help *nix users with their NFS mounted home
directories.

Ideally the tests should be fixed to properly cleanup opened .pack file
handles, but I've spent one day hunting the root cause on one single
test without success, due the asynchronous nature of the resources
creation/cleanup.

Bug: 440182
Change-Id: I5e879daed954aa35de197d8e1ea43c9fbccca7d4
Signed-off-by: Andrey Loskutov <loskutov@gmx.de>
org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/common/LocalRepositoryTestCase.java