mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-24 18:10:06 +01:00
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>
This commit is contained in:
parent
fc470291f1
commit
d187ef44aa
1 changed files with 7 additions and 0 deletions
|
|
@ -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 { \
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue