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/gvariant.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'json-glib/tests/gvariant.c') diff --git a/json-glib/tests/gvariant.c b/json-glib/tests/gvariant.c index e88b1b9..3f2bc13 100644 --- a/json-glib/tests/gvariant.c +++ b/json-glib/tests/gvariant.c @@ -176,7 +176,7 @@ test_gvariant_to_json (gconstpointer test_data) NULL); json_data = json_gvariant_serialize_data (variant, &len); - g_assert (json_data != NULL); + g_assert_nonnull (json_data); g_assert_cmpstr (test_case->json_data, ==, json_data); -- cgit v1.2.1