[Libosinfo] [libosinfo PATCH] tests: make the network tests run

Pino Toscano ptoscano at redhat.com
Fri Jul 14 11:02:19 UTC 2017


Load the default osinfo path, since the osinfo data are no more part of
the libosinfo sources.

The tests still fails though, but this is due to missing paths to ISOs
and trees.
---
 tests/test-mediauris.c | 2 +-
 tests/test-treeuris.c  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/test-mediauris.c b/tests/test-mediauris.c
index 46a68f0..5bfb4c9 100644
--- a/tests/test-mediauris.c
+++ b/tests/test-mediauris.c
@@ -80,7 +80,7 @@ START_TEST(test_uris)
     fail_unless(OSINFO_IS_LOADER(loader), "Loader is not a LOADER");
     fail_unless(OSINFO_IS_DB(db), "Db is not a DB");
 
-    osinfo_loader_process_path(loader, SRCDIR "/data", &error);
+    osinfo_loader_process_default_path(loader, &error);
     fail_unless(error == NULL, error ? error->message : "none");
 
     oslist = osinfo_db_get_os_list(db);
diff --git a/tests/test-treeuris.c b/tests/test-treeuris.c
index b5c50c6..60692bc 100644
--- a/tests/test-treeuris.c
+++ b/tests/test-treeuris.c
@@ -80,7 +80,7 @@ START_TEST(test_uris)
     fail_unless(OSINFO_IS_LOADER(loader), "Loader is not a LOADER");
     fail_unless(OSINFO_IS_DB(db), "Db is not a DB");
 
-    osinfo_loader_process_path(loader, SRCDIR "/data", &error);
+    osinfo_loader_process_default_path(loader, &error);
     fail_unless(error == NULL, error ? error->message : "none");
 
     oslist = osinfo_db_get_os_list(db);
-- 
2.9.4




More information about the Libosinfo mailing list