summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorBenjamin Dauvergne <bdauvergne@entrouvert.com>2013-09-08 21:19:57 +0200
committerBenjamin Dauvergne <bdauvergne@entrouvert.com>2013-09-08 21:34:12 +0200
commit53f6f5c5ef0e4b0564efbcf438ffb6a9dab65b65 (patch)
treec6a7a7a6a04538a92302126039909227d6363520 /tests
parent05a01a824715de7e8e5d3d65b73e8fc855e5dad9 (diff)
downloadlasso-53f6f5c5ef0e4b0564efbcf438ffb6a9dab65b65.tar.gz
lasso-53f6f5c5ef0e4b0564efbcf438ffb6a9dab65b65.tar.xz
lasso-53f6f5c5ef0e4b0564efbcf438ffb6a9dab65b65.zip
tests: in check_equals() and check_not_equals() macros use long long int as a catchall type for printing compared values
Diffstat (limited to 'tests')
-rw-r--r--tests/tests.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/tests.h b/tests/tests.h
index 62f01719..5c7ba4e4 100644
--- a/tests/tests.h
+++ b/tests/tests.h
@@ -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) \