From df24d43699dbf1b48ed78e446be3b4c62842ac58 Mon Sep 17 00:00:00 2001 From: Long Wang Date: Wed, 5 Jul 2017 15:17:58 +0800 Subject: [PATCH] tests: remove the temp container directory c->destory() will not remove the temp container directory. This patch fix that. Signed-off-by: Long Wang --- src/tests/parse_config_file.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tests/parse_config_file.c b/src/tests/parse_config_file.c index 0c9d717ec..dc4b586a6 100644 --- a/src/tests/parse_config_file.c +++ b/src/tests/parse_config_file.c @@ -26,6 +26,7 @@ #include #include #include +#include #include "confile_utils.h" #include "lxc/state.h" @@ -985,7 +986,7 @@ int main(int argc, char *argv[]) ret = EXIT_SUCCESS; non_test_error: (void)unlink(tmpf); - c->destroy(c); + (void)rmdir(dirname(c->configfile)); lxc_container_put(c); exit(ret); }