projects
/
NetworkManager.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fde5f7b
)
nmtst: add nmtst_assert_no_success() macro
author
Thomas Haller
<thaller@redhat.com>
Sun, 14 Feb 2016 20:28:22 +0000
(21:28 +0100)
committer
Thomas Haller
<thaller@redhat.com>
Sun, 14 Feb 2016 22:48:00 +0000
(23:48 +0100)
shared/nm-test-utils.h
patch
|
blob
|
history
diff --git
a/shared/nm-test-utils.h
b/shared/nm-test-utils.h
index
b49e49f
..
055d636
100644
(file)
--- a/
shared/nm-test-utils.h
+++ b/
shared/nm-test-utils.h
@@
-158,6
+158,12
@@
_nmtst_assert_success (gboolean success, GError *error, const char *file, int li
}
#define nmtst_assert_success(success, error) _nmtst_assert_success ((success), (error), __FILE__, __LINE__)
+#define nmtst_assert_no_success(success, error) \
+ G_STMT_START { \
+ g_assert (error); \
+ g_assert (!(success)); \
+ } G_STMT_END
+
/*******************************************************************************/
struct __nmtst_internal