From: Bartosz Golaszewski Date: Fri, 24 Feb 2017 10:39:39 +0000 (+0100) Subject: tests: add new assertion helper X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=7a4b575e737338ae13fb9ebab362d2993b8b003a;p=qemu-gpiodev%2Flibgpiod.git tests: add new assertion helper Add GU_ASSERT_NOTEQ() for testing if two numbers are not equal. Signed-off-by: Bartosz Golaszewski --- diff --git a/tests/unit/gpiod-unit.h b/tests/unit/gpiod-unit.h index 824c8c3..c9b8c4c 100644 --- a/tests/unit/gpiod-unit.h +++ b/tests/unit/gpiod-unit.h @@ -92,6 +92,7 @@ void gu_release_line(struct gpiod_line **line); #define GU_ASSERT_RET_OK(status) GU_ASSERT(status == 0) #define GU_ASSERT_NULL(ptr) GU_ASSERT(ptr == NULL) #define GU_ASSERT_EQ(a1, a2) GU_ASSERT(a1 == a2) +#define GU_ASSERT_NOTEQ(a1, a2) GU_ASSERT(a1 != a2) #define GU_ASSERT_STR_EQ(s1, s2) GU_ASSERT(strcmp(s1, s2) == 0) #endif /* __GPIOD_UNIT_H__ */