summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/repository/gitypelibtest.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/repository/gitypelibtest.c b/tests/repository/gitypelibtest.c
index 6620f1ea..c0398d97 100644
--- a/tests/repository/gitypelibtest.c
+++ b/tests/repository/gitypelibtest.c
@@ -163,7 +163,7 @@ test_fundamental_get_ref_function_pointer (GIRepository * repo)
g_assert (g_irepository_require (repo, "Regress", NULL, 0, NULL));
info = g_irepository_find_by_name (repo, "Regress", "TestFundamentalObject");
- g_object_info_get_ref_function_pointer (info);
+ g_assert_nonnull (g_object_info_get_ref_function_pointer (info));
g_base_info_unref (info);
}
@@ -308,6 +308,8 @@ main (int argc, char **argv)
{
GIRepository *repo;
+ g_log_set_always_fatal (G_LOG_LEVEL_WARNING | G_LOG_LEVEL_CRITICAL);
+
repo = g_irepository_get_default ();
/* do tests */