mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-09-06 17:14:02 +00:00
libnm-core/tests: drop duplicate tests _check_uuid_v3() (2)
The previous commits show that the behavior is the same. We can not drop these checks.
This commit is contained in:
parent
d527181e1f
commit
7e33ef916a
|
@ -8011,9 +8011,6 @@ _check_uuid(NMUuidType uuid_type,
|
||||||
nm_uuid_generate_from_strings_v3(__VA_ARGS__, NULL)); \
|
nm_uuid_generate_from_strings_v3(__VA_ARGS__, NULL)); \
|
||||||
})
|
})
|
||||||
|
|
||||||
#define check_uuid_v3(expected_uuid, str, ...) \
|
|
||||||
check_uuid(NM_UUID_TYPE_VERSION3, &nm_uuid_ns_1, expected_uuid, str, __VA_ARGS__)
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
test_nm_utils_uuid_generate_from_strings(void)
|
test_nm_utils_uuid_generate_from_strings(void)
|
||||||
{
|
{
|
||||||
|
@ -8034,21 +8031,6 @@ test_nm_utils_uuid_generate_from_strings(void)
|
||||||
g_assert_cmpstr(NM_UUID_NS_1, ==, nm_uuid_unparse(&nm_uuid_ns_1, buf));
|
g_assert_cmpstr(NM_UUID_NS_1, ==, nm_uuid_unparse(&nm_uuid_ns_1, buf));
|
||||||
g_assert_cmpstr(NM_UUID_NS_ZERO, ==, nm_uuid_unparse(&nm_uuid_ns_zero, buf));
|
g_assert_cmpstr(NM_UUID_NS_ZERO, ==, nm_uuid_unparse(&nm_uuid_ns_zero, buf));
|
||||||
|
|
||||||
check_uuid_v3("b07c334a-399b-32de-8d50-58e4e08f98e3", "", NULL);
|
|
||||||
check_uuid_v3("b8a426cb-bcb5-30a3-bd8f-6786fea72df9", "\0", "");
|
|
||||||
check_uuid_v3("12a4a982-7aae-39e1-951e-41aeb1250959", "a\0", "a");
|
|
||||||
check_uuid_v3("69e22c7e-f89f-3a43-b239-1cb52ed8db69", "aa\0", "aa");
|
|
||||||
check_uuid_v3("59829fd3-5ad5-3d90-a7b0-4911747e4088", "\0\0", "", "");
|
|
||||||
check_uuid_v3("01ad0e06-6c50-3384-8d86-ddab81421425", "a\0\0", "a", "");
|
|
||||||
check_uuid_v3("e1ed8647-9ed3-3ec8-8c6d-e8204524d71d", "aa\0\0", "aa", "");
|
|
||||||
check_uuid_v3("fb1c7cd6-275c-3489-9382-83b900da8af0", "\0a\0", "", "a");
|
|
||||||
check_uuid_v3("5d79494e-c4ba-31a6-80a2-d6016ccd7e17", "a\0a\0", "a", "a");
|
|
||||||
check_uuid_v3("fd698d86-1b60-3ebe-855f-7aada9950a8d", "aa\0a\0", "aa", "a");
|
|
||||||
check_uuid_v3("8c573b48-0f01-30ba-bb94-c5f59f4fe517", "\0aa\0", "", "aa");
|
|
||||||
check_uuid_v3("2bdd3d46-eb83-3c53-a41b-a724d04b5544", "a\0aa\0", "a", "aa");
|
|
||||||
check_uuid_v3("13d4b780-07c1-3ba7-b449-81c4844ef039", "aa\0aa\0", "aa", "aa");
|
|
||||||
check_uuid_v3("dd265bf7-c05a-3037-9939-b9629858a477", "a\0b\0", "a", "b");
|
|
||||||
|
|
||||||
_check_uuid(NM_UUID_TYPE_VERSION3,
|
_check_uuid(NM_UUID_TYPE_VERSION3,
|
||||||
&nm_uuid_ns_1,
|
&nm_uuid_ns_1,
|
||||||
"457229f4-fe49-32f5-8b09-c531d81f44d9",
|
"457229f4-fe49-32f5-8b09-c531d81f44d9",
|
||||||
|
|
Loading…
Reference in a new issue