[glib: 1/2] tests: Fix an error message set by foo_set_property()



commit a28c34ba8851ef86f723e78457bba2cbe8410422
Author: Matthew Leeds <mwl458 gmail com>
Date:   Wed Dec 18 16:39:56 2019 +0000

    tests: Fix an error message set by foo_set_property()
    
    The property name and value were mistakenly swapped.

 gio/tests/gdbus-export.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gio/tests/gdbus-export.c b/gio/tests/gdbus-export.c
index 506c7458a..fda654c44 100644
--- a/gio/tests/gdbus-export.c
+++ b/gio/tests/gdbus-export.c
@@ -189,7 +189,7 @@ foo_set_property (GDBusConnection       *connection,
                G_DBUS_ERROR,
                G_DBUS_ERROR_SPAWN_FILE_INVALID,
                "Returning some error instead of writing the value '%s' to the property '%s'",
-               property_name, s);
+               s, property_name);
   g_free (s);
   return FALSE;
 }
@@ -927,7 +927,7 @@ test_dispatch_thread_func (gpointer user_data)
     {
       /* _with_closures variant doesn't support customizing error data. */
       g_assert_error (error, G_DBUS_ERROR, G_DBUS_ERROR_SPAWN_FILE_INVALID);
-      g_assert_cmpstr (error->message, ==, "GDBus.Error:org.freedesktop.DBus.Error.Spawn.FileInvalid: 
Returning some error instead of writing the value 'NotReadable' to the property ''But Writable you are!''");
+      g_assert_cmpstr (error->message, ==, "GDBus.Error:org.freedesktop.DBus.Error.Spawn.FileInvalid: 
Returning some error instead of writing the value ''But Writable you are!'' to the property 'NotReadable'");
     }
   g_assert (error != NULL && error->domain == G_DBUS_ERROR);
   g_error_free (error);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]