mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-05 06:28:05 +02:00
nmtst: add nmtst_assert_no_success() macro
This commit is contained in:
parent
fde5f7bfab
commit
78f558c706
1 changed files with 6 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue