tests: Add some assertions to avoid unused variable warnings on Clang

Signed-off-by: Philip Withnall <withnall@endlessm.com>
This commit is contained in:
Philip Withnall 2020-02-24 15:38:51 +00:00
parent 99a325356d
commit 37a3da891b
2 changed files with 2 additions and 0 deletions

View File

@ -180,6 +180,7 @@ test_g_main_context_pusher (void)
if (TRUE)
{
g_autoptr(GMainContextPusher) val = g_main_context_pusher_new (context);
g_assert_nonnull (val);
/* Check its now the thread-default main context */
g_assert_true (g_main_context_get_thread_default () == context);

View File

@ -77,6 +77,7 @@ test_autoptr (void)
{
g_autoptr (TestAutoCleanup) tac = tac_ptr;
g_assert_nonnull (tac);
}
#ifdef __GNUC__
g_assert_null (tac_ptr);