[evolution-data-server] tests: Run book-migration Berkeley DB tests only if libdb had been found
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] tests: Run book-migration Berkeley DB tests only if libdb had been found
- Date: Fri, 9 Apr 2021 11:48:41 +0000 (UTC)
commit 7469cc1e280edd804c1b0c6f6748126f06202b17
Author: Milan Crha <mcrha redhat com>
Date: Fri Apr 9 13:45:16 2021 +0200
tests: Run book-migration Berkeley DB tests only if libdb had been found
Run old book migration tests from the Berkeley DB databases only if
being compiled with libdb, otherwise there is not done any migration
and the tests fail.
tests/book-migration/test-migration.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/tests/book-migration/test-migration.c b/tests/book-migration/test-migration.c
index 40acc4118..20b0373e0 100644
--- a/tests/book-migration/test-migration.c
+++ b/tests/book-migration/test-migration.c
@@ -347,7 +347,7 @@ list_migration_sandboxes (void)
g_file_test (old_bdb, G_FILE_TEST_IS_REGULAR) ||
g_file_test (new_contactsdb, G_FILE_TEST_IS_REGULAR))) {
-#if defined (TEST_VERSIONS_WITH_BDB)
+#if defined (TEST_VERSIONS_WITH_BDB) && defined (HAVE_LIBDB)
sandboxes = g_list_prepend (sandboxes, g_strdup (filename));
#else
/* We allow compilation of EDS on a system without the db_load utility, if this
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]