summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2017-05-04 12:42:23 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2017-05-04 12:43:38 +1000
commitd187ef44aa4ff25f805bc4b87f6136fba47d89f5 (patch)
treee3ed606737f89955c3d9bc31b6c845746e9a857c /test
parentfc470291f1e66ff4a9195df92b3600a331cd488f (diff)
test: undef ck_assert_double before redefining it
check 0.11 has those macros, but they don't work the same way as our homemade ones. So for now just #undef them Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'test')
-rw-r--r--test/litest.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/litest.h b/test/litest.h
index b12cf77..fc75816 100644
--- a/test/litest.h
+++ b/test/litest.h
@@ -906,6 +906,13 @@ litest_disable_middleemu(struct litest_device *dev)
litest_assert_int_eq(status, expected);
}
+#undef ck_assert_double_eq
+#undef ck_assert_double_ne
+#undef ck_assert_double_lt
+#undef ck_assert_double_le
+#undef ck_assert_double_gt
+#undef ck_assert_double_ge
+
#define CK_DOUBLE_EQ_EPSILON 1E-3
#define ck_assert_double_eq(X,Y) \
do { \