From cc83006f66d00c78efc2fdbe109eab1724dc0958 Mon Sep 17 00:00:00 2001 From: Frederic Martinsons Date: Tue, 11 Oct 2022 08:47:46 +0200 Subject: Drop usage of raw g_assert in reader test in favor of g_assert_*() This will give more informative message in case of fail assertions. Moreover GLib (when compiling with G_DISABLE_ASSERT) disable g_assert totally, that would make these tests no-op Signed-off-by: Frederic Martinsons --- json-glib/tests/serialize-simple.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'json-glib/tests/serialize-simple.c') diff --git a/json-glib/tests/serialize-simple.c b/json-glib/tests/serialize-simple.c index e2e7be2..6d456af 100644 --- a/json-glib/tests/serialize-simple.c +++ b/json-glib/tests/serialize-simple.c @@ -142,7 +142,7 @@ test_serialize (void) data = json_gobject_to_data (G_OBJECT (obj), &len); - g_assert (data != NULL); + g_assert_nonnull (data); g_assert_cmpint (len, >, 0); g_assert_cmpint (len, ==, strlen (data)); -- cgit v1.2.1