mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-03 14:42:10 +01: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:
parent
bd5922db09
commit
e1e1e8ee1c
@ -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 ();
|
||||
|
Loading…
x
Reference in New Issue
Block a user