From: Long Wang Date: Wed, 5 Jul 2017 07:17:58 +0000 (+0800) Subject: tests: remove the temp container directory X-Git-Tag: lxc-2.1.0~66^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=df24d43699dbf1b48ed78e446be3b4c62842ac58;p=thirdparty%2Flxc.git tests: remove the temp container directory c->destory() will not remove the temp container directory. This patch fix that. Signed-off-by: Long Wang --- 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); }