tests: in check_equals() and check_not_equals() macros use long long int as a catchall type for printing compared values
This commit is contained in:
parent
05a01a8247
commit
53f6f5c5ef
|
@ -52,14 +52,14 @@
|
|||
{ typeof(what) __tmp1, __tmp2; \
|
||||
__tmp1 = (what); \
|
||||
__tmp2 = (to); \
|
||||
fail_unless(__tmp1 == __tmp2, "%s:%i: " #what " is not equal to " #to "(%p) but to %p", __func__, __LINE__, (void*)__tmp2, (void*)__tmp1); \
|
||||
fail_unless(__tmp1 == __tmp2, "%s:%i: " #what " is not equal to " #to "(%llu) but to %llu", __func__, __LINE__, (long long int)__tmp2, (long long int)__tmp1); \
|
||||
}
|
||||
|
||||
#define check_not_equals(what,to) \
|
||||
{ typeof(what) __tmp1, __tmp2; \
|
||||
__tmp1 = (what); \
|
||||
__tmp2 = (to); \
|
||||
fail_unless(__tmp1 != __tmp2, "%s:%i: " #what " is equal to " #to "(%p)", __func__, __LINE__, (void*)__tmp2); \
|
||||
fail_unless(__tmp1 != __tmp2, "%s:%i: " #what " is equal to " #to "(%llu)", __func__, __LINE__, (long long int)__tmp2); \
|
||||
}
|
||||
|
||||
#define check_str_equals(what, to) \
|
||||
|
|
Loading…
Reference in New Issue