mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-01 23:13:40 +02:00
gobject/tests/signals.c: Fix tests on Windows
On Windows and possibly other platforms the '%p' printf modifier does not prefix printed values with '0x', so do not expect the warning message to contain the '0x' prefix for the handler pointer value.
This commit is contained in:
@@ -1267,7 +1267,7 @@ test_clear_signal_handler (void)
|
||||
{
|
||||
handler = g_random_int_range (0x01, 0xFF);
|
||||
g_test_expect_message (G_LOG_DOMAIN, G_LOG_LEVEL_WARNING,
|
||||
"*instance '0x* has no handler with id *'");
|
||||
"*instance '* has no handler with id *'");
|
||||
g_clear_signal_handler (&handler, test_obj);
|
||||
g_assert_cmpuint (handler, ==, 0);
|
||||
g_test_assert_expected_messages ();
|
||||
|
Reference in New Issue
Block a user