mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-26 15:36:14 +01:00
tests: Fix an error message set by foo_set_property()
The property name and value were mistakenly swapped.
This commit is contained in:
parent
51c3921022
commit
a28c34ba88
@ -189,7 +189,7 @@ foo_set_property (GDBusConnection *connection,
|
|||||||
G_DBUS_ERROR,
|
G_DBUS_ERROR,
|
||||||
G_DBUS_ERROR_SPAWN_FILE_INVALID,
|
G_DBUS_ERROR_SPAWN_FILE_INVALID,
|
||||||
"Returning some error instead of writing the value '%s' to the property '%s'",
|
"Returning some error instead of writing the value '%s' to the property '%s'",
|
||||||
property_name, s);
|
s, property_name);
|
||||||
g_free (s);
|
g_free (s);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
@ -927,7 +927,7 @@ test_dispatch_thread_func (gpointer user_data)
|
|||||||
{
|
{
|
||||||
/* _with_closures variant doesn't support customizing error 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_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_assert (error != NULL && error->domain == G_DBUS_ERROR);
|
||||||
g_error_free (error);
|
g_error_free (error);
|
||||||
|
Loading…
Reference in New Issue
Block a user