mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-20 08:47:28 +01:00
Have tests print all of status.repr
This commit is contained in:
1 parent
7f1572ca16
commit
0319777cce
5 files changed
+30
-48
No files matched your search
@@ -65,12 +65,12 @@ char fail_msg[65536] = {0};
|
||||
#define INCR_FAIL(msg, ...) \
|
||||
msg += snprintf(msg, sizeof(fail_msg) - (msg - fail_msg), ##__VA_ARGS__)
|
||||
|
||||
#define CHECK_STATUS(prefix, status) \
|
||||
{ \
|
||||
wuffs_base__status z = status; \
|
||||
if (!wuffs_base__status__is_ok(&z)) { \
|
||||
RETURN_FAIL("%s: \"%s\"", prefix, wuffs_base__status__message(&z)); \
|
||||
} \
|
||||
#define CHECK_STATUS(prefix, status) \
|
||||
{ \
|
||||
wuffs_base__status z = status; \
|
||||
if (z.repr) { \
|
||||
RETURN_FAIL("%s: \"%s\"", prefix, z.repr); \
|
||||
} \
|
||||
}
|
||||
|
||||
#define CHECK_STRING(string) \
|
||||
|
||||
Reference in new issue
Block a user