[glib: 4/12] tests: Use g_assert_*() rather than g_assert() in spawn-multithreaded




commit fd43391583a649472224ab646ef4be803f9fcb27
Author: Philip Withnall <pwithnall endlessos org>
Date:   Sat Mar 12 01:12:19 2022 +0000

    tests: Use g_assert_*() rather than g_assert() in spawn-multithreaded
    
    It won’t get compiled out with `G_DISABLE_ASSERT`.
    
    Signed-off-by: Philip Withnall <pwithnall endlessos org>

 glib/tests/spawn-multithreaded.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/glib/tests/spawn-multithreaded.c b/glib/tests/spawn-multithreaded.c
index c73a23433..b206b3f3b 100644
--- a/glib/tests/spawn-multithreaded.c
+++ b/glib/tests/spawn-multithreaded.c
@@ -350,8 +350,8 @@ test_spawn_async_multithreaded_instance (gpointer thread_data)
 
   g_main_loop_run (loop);
 
-  g_assert (data.child_exited);
-  g_assert (data.stdout_done);
+  g_assert_true (data.child_exited);
+  g_assert_true (data.stdout_done);
   g_assert_cmpstr (data.stdout_buf->str, ==, arg);
   g_string_free (data.stdout_buf, TRUE);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]