From d187ef44aa4ff25f805bc4b87f6136fba47d89f5 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Thu, 4 May 2017 12:42:23 +1000 Subject: 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 --- test/litest.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test') 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 { \ -- cgit v1.2.3