initrd/tests: add _parse_no_con() macro

(cherry picked from commit 553721eed7)
This commit is contained in:
Thomas Haller 2021-08-30 09:14:34 +02:00
parent 279f9fff67
commit bd28e91947
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

@ -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