diff options
author | Thomas Haller <thaller@redhat.com> | 2016-09-22 14:14:22 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2016-09-22 16:34:22 +0200 |
commit | b1fd5a06c4a4e98c7021811b7e26c6b82a758788 (patch) | |
tree | 41ce6d0865fe4ee1b01e651bedb5708bfac3d306 /libnm-core | |
parent | f1165cc29075cd12d5fff5226e5eff6735187885 (diff) | |
download | NetworkManager-b1fd5a06c4a4e98c7021811b7e26c6b82a758788.tar.gz |
macros: simplify NM_IN_SET() and NM_IN_STRSET() macros
and support up to 16 arguments.
Diffstat (limited to 'libnm-core')
-rw-r--r-- | libnm-core/tests/test-general.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libnm-core/tests/test-general.c b/libnm-core/tests/test-general.c index 554e6baeed..5dfc897114 100644 --- a/libnm-core/tests/test-general.c +++ b/libnm-core/tests/test-general.c @@ -5222,6 +5222,8 @@ test_nm_in_set (void) _ASSERT (5, NM_IN_SET_SE (-1, G( 1), G( 2), G( 3), G(-1), G( 5))); _ASSERT (6, NM_IN_SET_SE (-1, G( 1), G( 2), G( 3), G( 4), G( 5), G(-1))); + + (void) NM_IN_SET ("a", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16"); #undef G #undef N #undef _ASSERT @@ -5348,6 +5350,8 @@ test_nm_in_strset (void) _ASSERT (5, NM_IN_STRSET ("a", G(NULL), G("b"), G("c"), G("d"), G("a"), N("a"))); _ASSERT (6, NM_IN_STRSET ("a", G(NULL), G("b"), G("c"), G("d"), G("e"), G("a"))); _ASSERT (6, !NM_IN_STRSET ("a", G(NULL), G("b"), G("c"), G("d"), G("e"), G("f"))); + + (void) NM_IN_STRSET ("a", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16"); #undef G #undef N #undef _ASSERT |