summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/tests/simple_access-tests.c1
-rw-r--r--src/tests/sysdb-tests.c8
2 files changed, 2 insertions, 7 deletions
diff --git a/src/tests/simple_access-tests.c b/src/tests/simple_access-tests.c
index 0fa5d049f..999277340 100644
--- a/src/tests/simple_access-tests.c
+++ b/src/tests/simple_access-tests.c
@@ -661,6 +661,7 @@ int main(int argc, const char *argv[])
DEBUG_INIT(debug_level);
tests_set_cwd();
+ test_dom_suite_cleanup(TESTS_PATH, TEST_CONF_FILE, LOCAL_SYSDB_FILE);
Suite *s = access_simple_suite();
SRunner *sr = srunner_create(s);
diff --git a/src/tests/sysdb-tests.c b/src/tests/sysdb-tests.c
index e3ed879b6..711d8f493 100644
--- a/src/tests/sysdb-tests.c
+++ b/src/tests/sysdb-tests.c
@@ -5621,7 +5621,6 @@ Suite *create_sysdb_suite(void)
int main(int argc, const char *argv[]) {
int opt;
- int ret;
poptContext pc;
int failure_count;
int no_cleanup = 0;
@@ -5660,12 +5659,7 @@ int main(int argc, const char *argv[]) {
tests_set_cwd();
- ret = unlink(TESTS_PATH"/"LOCAL_SYSDB_FILE);
- if (ret != EOK && errno != ENOENT) {
- fprintf(stderr, "Could not delete the test ldb file (%d) (%s)\n",
- errno, strerror(errno));
- return EXIT_FAILURE;
- }
+ test_dom_suite_cleanup(TESTS_PATH, TEST_CONF_FILE, LOCAL_SYSDB_FILE);
sysdb_suite = create_sysdb_suite();
sr = srunner_create(sysdb_suite);