From a37bd3e4ad3e65c7011f29384f54aa15ac3311aa Mon Sep 17 00:00:00 2001 From: Pavel Březina Date: Tue, 18 Feb 2014 13:41:21 +0100 Subject: tests: don't print debug message when test dir does not exist We delete the test dir before a new test suit is started, to make sure there is no garbage left. The test dir is usually already deleted so in most runs a noisy debug message is printed. Reviewed-by: Jakub Hrozek --- src/tests/common_dom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/tests/common_dom.c') diff --git a/src/tests/common_dom.c b/src/tests/common_dom.c index 42bf358a3..053b78ec3 100644 --- a/src/tests/common_dom.c +++ b/src/tests/common_dom.c @@ -172,7 +172,7 @@ void test_dom_suite_cleanup(const char *tests_path, errno = 0; ret = rmdir(tests_path); - if (ret != 0) { + if (ret != 0 && errno != ENOENT) { DEBUG(SSSDBG_CRIT_FAILURE, "Could not delete the test dir (%d) (%s)\n", errno, strerror(errno)); -- cgit