Add workaround for testsuite failures under Wine
commit1bb21ebad5d69747ca69b4ae607e3b4d9a9b206f
authorOlly Betts <olly@survex.com>
Fri, 4 Aug 2023 00:49:44 +0000 (4 12:49 +1200)
committerOlly Betts <olly@survex.com>
Fri, 4 Aug 2023 00:49:44 +0000 (4 12:49 +1200)
tree759d34893b56b75626b8e034942fc4b19984b5b9
parent173fc7ab746fd42c00ef36992cb138f5bb51c03b
Add workaround for testsuite failures under Wine

Attempting to unlink a stub file sometimes fails with
errno == EPERM and _doserrno == ERROR_SHARING_VIOLATION.  This is
what you'd get if the file was still open, but we've already closed
it and sleeping for a second and retrying makes it work.  It'd be
better to get to the bottom of what's going on, but I've run out
of ideas and this workaround is only in the testharness at least.
xapian-core/tests/harness/backendmanager_multi.cc