From 9279f3b0f9f08b63ea89245c175c5f872e9947e6 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Wed, 22 Mar 2023 14:38:04 +0000 Subject: [PATCH] tests: Use g_assert_*() rather than g_assert() in appmonitor tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It won’t get compiled out with `G_DISABLE_ASSERT`. Signed-off-by: Philip Withnall --- gio/tests/appmonitor.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gio/tests/appmonitor.c b/gio/tests/appmonitor.c index 076e7c8a9..50a0c5863 100644 --- a/gio/tests/appmonitor.c +++ b/gio/tests/appmonitor.c @@ -118,7 +118,7 @@ test_app_monitor (Fixture *fixture, g_timeout_add_seconds (3, quit_loop, loop); g_main_loop_run (loop); - g_assert (changed_fired); + g_assert_true (changed_fired); changed_fired = FALSE; /* FIXME: this shouldn't be required */ @@ -130,7 +130,7 @@ test_app_monitor (Fixture *fixture, g_main_loop_run (loop); - g_assert (changed_fired); + g_assert_true (changed_fired); g_main_loop_unref (loop); g_remove (app_path);