projects
/
qemu-gpiodev
/
libgpiod.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f92b2d0
)
tests: add new assertion helper
author
Bartosz Golaszewski
<bartekgola@gmail.com>
Fri, 24 Feb 2017 10:39:39 +0000
(11:39 +0100)
committer
Bartosz Golaszewski
<bartekgola@gmail.com>
Fri, 24 Feb 2017 10:39:39 +0000
(11:39 +0100)
Add GU_ASSERT_NOTEQ() for testing if two numbers are not equal.
Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com>
tests/unit/gpiod-unit.h
patch
|
blob
|
history
diff --git
a/tests/unit/gpiod-unit.h
b/tests/unit/gpiod-unit.h
index 824c8c30181aef71cefa91239356497cdd3eb5fd..c9b8c4c38d94479d48088881fde9db9744e47a43 100644
(file)
--- 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__ */