[gnome-software] trivial: Fix make check with a clean checkout



commit 5ebbdd88a31d2fc0117b99d499384105e7f07e1d
Author: Richard Hughes <richard hughsie com>
Date:   Mon Sep 19 10:35:42 2016 +0100

    trivial: Fix make check with a clean checkout

 src/gs-self-test.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/gs-self-test.c b/src/gs-self-test.c
index 4b00b8d..2a948a6 100644
--- a/src/gs-self-test.c
+++ b/src/gs-self-test.c
@@ -962,7 +962,8 @@ gs_plugin_loader_flatpak_func (GsPluginLoader *plugin_loader)
 
        /* no files to use */
        repodir_fn = gs_test_get_filename ("tests/flatpak/repo");
-       if (!g_file_test (repodir_fn, G_FILE_TEST_EXISTS)) {
+       if (repodir_fn == NULL ||
+           !g_file_test (repodir_fn, G_FILE_TEST_EXISTS)) {
                g_test_skip ("no flatpak test repo");
                return;
        }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]