Tests: Fix up the expected messages
authorChun-wei Fan <fanchunwei@src.gnome.org>
Wed, 6 Nov 2013 08:58:00 +0000 (16:58 +0800)
committerChun-wei Fan <fanchunwei@src.gnome.org>
Mon, 11 Nov 2013 14:40:57 +0000 (22:40 +0800)
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

gio/tests/credentials.c

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