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 5134e388cd11f07a945a3bfaad543feea65e6f9a..afd73cc66a067c5781f8fead3e4a5ca32605a194 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);