tests: Avoid g_assert() use in unit tests

This is aimed towards allowing g_assert() to be compiled out of
release builds by ensuring they do not affect the testsuite.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/4011>
This commit is contained in:
Christian Hergert
2024-09-06 13:16:01 -07:00
committed by Sebastian Wick
parent bce2790f7f
commit 2666aabde2
94 changed files with 695 additions and 690 deletions

View File

@ -65,7 +65,7 @@ main (int argc,
context = meta_create_test_context (META_CONTEXT_TEST_TYPE_VKMS,
META_CONTEXT_TEST_FLAG_NO_X11);
g_assert (meta_context_configure (context, &argc, &argv, NULL));
g_assert_true (meta_context_configure (context, &argc, &argv, NULL));
test_context = context;