Commit fb6f4539 by Edward Thomson

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.
parent fb52ba19
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment