mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-22 08:47:28 +01:00
Add CHECK_STRING testlib macro
This commit is contained in:
1 parent
e6db7f6a40
commit
77a5311c4b
8 files changed
+83
-273
No files matched your search
+1
-4
@@ -135,10 +135,7 @@ const char* do_test_wuffs_zlib_checksum(bool ignore_checksum,
|
||||
.data = global_src_slice,
|
||||
});
|
||||
|
||||
const char* status_msg = read_file(&src, zlib_midsummer_gt.src_filename);
|
||||
if (status_msg) {
|
||||
return status_msg;
|
||||
}
|
||||
CHECK_STRING(read_file(&src, zlib_midsummer_gt.src_filename));
|
||||
// Flip a bit in the zlib checksum, which is in the last 4 bytes of the file.
|
||||
if (src.meta.wi < 4) {
|
||||
RETURN_FAIL("source file was too short");
|
||||
|
||||
Reference in new issue
Block a user