summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2014-12-04 17:55:44 +0100
committerThomas Haller <thaller@redhat.com>2014-12-04 17:57:35 +0100
commit87f2b92da3b6775dfb21fa2973c28c31a31edcdd (patch)
tree3e673b7edfe08d6f8c11fa2343a8edb6771b0c70
parent69860e5d3aa91c1d40b9e8813a8e0565608befb1 (diff)
downloadNetworkManager-87f2b92da3b6775dfb21fa2973c28c31a31edcdd.tar.gz
libnm-util/tests: fix invalid g_test_expect_message() pattern
A failure to g_return_*() prints a critical warning which contains G_STRFUNC. Depending on the compiler this contains only the function name or the entire signature. Relax the assertion pattern to check the function name.
-rw-r--r--libnm-util/tests/test-general.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libnm-util/tests/test-general.c b/libnm-util/tests/test-general.c
index 1d1f84eb43..f748fcf595 100644
--- a/libnm-util/tests/test-general.c
+++ b/libnm-util/tests/test-general.c
@@ -2519,12 +2519,12 @@ test_nm_utils_uuid_generate_from_string (void)
_test_uuid ("098f6bcd-4621-d373-cade-4e832627b4f6", "test");
_test_uuid ("59c0547b-7fe2-1c15-2cce-e328e8bf6742", "/etc/NetworkManager/system-connections/em1");
- g_test_expect_message ("libnm-util", G_LOG_LEVEL_CRITICAL, "*char *nm_utils_uuid_generate_from_string(const char *): *s && *s*");
+ g_test_expect_message ("libnm-util", G_LOG_LEVEL_CRITICAL, "*nm_utils_uuid_generate_from_string*: *s && *s*");
uuid_test = nm_utils_uuid_generate_from_string ("");
g_assert (uuid_test == NULL);
g_test_assert_expected_messages ();
- g_test_expect_message ("libnm-util", G_LOG_LEVEL_CRITICAL, "*char *nm_utils_uuid_generate_from_string(const char *): *s && *s*");
+ g_test_expect_message ("libnm-util", G_LOG_LEVEL_CRITICAL, "*nm_utils_uuid_generate_from_string*: *s && *s*");
uuid_test = nm_utils_uuid_generate_from_string (NULL);
g_assert (uuid_test == NULL);
g_test_assert_expected_messages ();