mirror of
https://git.proxmox.com/git/libgit2
synced 2025-06-23 01:10:12 +00:00
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.
This commit is contained in:
parent
fb52ba19ff
commit
fb6f4539d1
@ -468,6 +468,7 @@ void clar__assert_equal_file(
|
|||||||
p_snprintf(
|
p_snprintf(
|
||||||
buf, sizeof(buf), "file content mismatch at byte %d",
|
buf, sizeof(buf), "file content mismatch at byte %d",
|
||||||
(int)(total_bytes + pos));
|
(int)(total_bytes + pos));
|
||||||
|
p_close(fd);
|
||||||
clar__fail(file, line, buf, path, 1);
|
clar__fail(file, line, buf, path, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user