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:
Chun-wei Fan 2019-06-24 11:42:14 +08:00
parent bd5922db09
commit e1e1e8ee1c

View File

@ -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 ();