Tests: Fix up the expected messages

There was an expected messages that was not in the form that GLib on
Windows actually produces, which causes some test to fail.  Fix this up.

https://bugzilla.gnome.org/show_bug.cgi?id=711047
This commit is contained in:
Chun-wei Fan 2013-11-06 16:58:00 +08:00
parent c58a7b8c74
commit 0212ab6182

View File

@ -143,8 +143,8 @@ test_basic (void)
#else /* ! G_CREDENTIALS_SUPPORTED */ #else /* ! G_CREDENTIALS_SUPPORTED */
g_test_expect_message (G_LOG_DOMAIN, G_LOG_LEVEL_WARNING, g_test_expect_message (G_LOG_DOMAIN, G_LOG_LEVEL_WARNING,
"*g_credentials_get_native: Trying to get*" "*g_credentials_get_native: Trying to get "
"credentials but*no support*"); "credentials *but*no support*");
bad_native_creds = g_credentials_get_native (creds, G_CREDENTIALS_TYPE_LINUX_UCRED); bad_native_creds = g_credentials_get_native (creds, G_CREDENTIALS_TYPE_LINUX_UCRED);
g_test_assert_expected_messages (); g_test_assert_expected_messages ();
g_assert_null (bad_native_creds); g_assert_null (bad_native_creds);