From e7b044c11190ed4deae2c2bb61ff3cc2c99170b2 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sat, 17 Dec 2022 09:28:57 -0800 Subject: tests: Replace g_assert() calls with g_assert_*() calls https://docs.gtk.org/glib/testing.html warns against using g_assert() in test cases, since it is a no-op when compiling with G_DISABLE_ASSERT. The replacement calls also give more detailed messages on failures. Raises the minimum required glib version for building unit tests from 2.16 (released March 2008) to 2.40 (released March 2014) to get support for g_assert_nonnull(). Signed-off-by: Alan Coopersmith --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 87b5217..3fc7f9c 100644 --- a/configure.ac +++ b/configure.ac @@ -138,7 +138,7 @@ fi # --enable-unit-tests XORG_ENABLE_UNIT_TESTS -XORG_WITH_GLIB([2.16]) +XORG_WITH_GLIB([2.40]) XORG_MEMORY_CHECK_FLAGS # Replaces XFileSearchPathDefault from Imake configs -- cgit v1.2.1