[jsonrpc-glib] stress: use proper testing macros



commit 3201386706fc0cbc73f0b06994a963301d922a6c
Author: Christian Hergert <chergert redhat com>
Date:   Sun Feb 11 16:38:15 2018 -0800

    stress: use proper testing macros

 tests/test-stress.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/tests/test-stress.c b/tests/test-stress.c
index 8713fa6..28e3f6e 100644
--- a/tests/test-stress.c
+++ b/tests/test-stress.c
@@ -142,9 +142,9 @@ client_call_cb (GObject      *object,
   if (n_ops < 0)
     {
       /* We expect an error here, for the stream being closed */
-      g_assert (error != NULL);
-      g_assert_cmpint (r, ==, 0);
-      g_assert (reply == NULL);
+      g_assert_nonnull (error);
+      g_assert_false (r);
+      g_assert_null (reply);
       g_main_loop_quit (main_loop);
       return;
     }


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