From 7a4b575e737338ae13fb9ebab362d2993b8b003a Mon Sep 17 00:00:00 2001 From: Bartosz Golaszewski Date: Fri, 24 Feb 2017 11:39:39 +0100 Subject: [PATCH] tests: add new assertion helper Add GU_ASSERT_NOTEQ() for testing if two numbers are not equal. Signed-off-by: Bartosz Golaszewski --- tests/unit/gpiod-unit.h | 1 + 1 file changed, 1 insertion(+) 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__ */ -- 2.30.2