Fixes to HTTP repo tests on Windows.

Large alloca fails, and SGFIle dtor doesn't close the handle,
which breaks _wunlink on Windows :(
This commit is contained in:
James Turner
2018-07-18 07:20:18 +01:00
parent 0e9e5f77cc
commit 3dfce43de2
3 changed files with 11 additions and 3 deletions
+4
View File
@@ -749,6 +749,10 @@ HTTPRepository::failure() const
code = HTTPRepository::REPO_ERROR_CANCELLED;
}
if (file) {
file->close();
}
file.reset();
if (pathInRepo.exists()) {
pathInRepo.remove();