mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-30 09:40:11 +01:00
initrd/tests: add _parse_no_con() macro
(cherry picked from commit 553721eed7)
This commit is contained in:
parent
279f9fff67
commit
bd28e91947
1 changed files with 10 additions and 0 deletions
|
|
@ -74,6 +74,16 @@
|
|||
NM_CONNECTION(g_object_ref(_1_connection)); \
|
||||
})
|
||||
|
||||
#define _parse_no_con(ARGV) \
|
||||
G_STMT_START \
|
||||
{ \
|
||||
gs_unref_hashtable GHashTable *_0_connections = NULL; \
|
||||
\
|
||||
_0_connections = _parse_cons(ARGV); \
|
||||
g_assert_cmpint(g_hash_table_size(_0_connections), ==, 0); \
|
||||
} \
|
||||
G_STMT_END
|
||||
|
||||
/*****************************************************************************/
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue