summaryrefslogtreecommitdiff
path: root/tests/clar_libgit2.c
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@microsoft.com>2014-02-09 12:36:24 -0800
committerEdward Thomson <ethomson@microsoft.com>2014-02-09 13:45:36 -0800
commitfb6f4539d1de1f2c171d6be2e088b5b763f3e5f8 (patch)
tree7b16ecd5f089bc80bfb623e16f7f7f977a24528e /tests/clar_libgit2.c
parentfb52ba19ff0a620b4fd9482132206ccb4daee8e0 (diff)
downloadlibgit2-fb6f4539d1de1f2c171d6be2e088b5b763f3e5f8.tar.gz
Close files on file diff failure
Not closing the files on a diff failure ensures that clar cleanup will fail on win32 because we still have the file open.
Diffstat (limited to 'tests/clar_libgit2.c')
-rw-r--r--tests/clar_libgit2.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/clar_libgit2.c b/tests/clar_libgit2.c
index 50762cdb8..9a37ee4c1 100644
--- a/tests/clar_libgit2.c
+++ b/tests/clar_libgit2.c
@@ -468,6 +468,7 @@ void clar__assert_equal_file(
p_snprintf(
buf, sizeof(buf), "file content mismatch at byte %d",
(int)(total_bytes + pos));
+ p_close(fd);
clar__fail(file, line, buf, path, 1);
}