From b36153ce4c3eeb19274ce32e82949da446184406 Mon Sep 17 00:00:00 2001 From: Lukas Slebodnik Date: Wed, 22 May 2013 09:02:24 +0200 Subject: Remove empty directories after tests run. Empty directory tests_path is removed in function test_dom_suite_cleanup. Function test_dom_suite_cleanup is reused in other tests. --- src/tests/common_dom.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/tests/common_dom.c') diff --git a/src/tests/common_dom.c b/src/tests/common_dom.c index 00e7f5ae..661271d3 100644 --- a/src/tests/common_dom.c +++ b/src/tests/common_dom.c @@ -156,6 +156,14 @@ void test_dom_suite_cleanup(const char *tests_path, errno, strerror(errno))); } + errno = 0; + ret = rmdir(tests_path); + if (ret != 0) { + DEBUG(SSSDBG_CRIT_FAILURE, + ("Could not delete the test dir (%d) (%s)\n", + errno, strerror(errno))); + } + talloc_free(conf_db); talloc_free(sys_db); } -- cgit