From: 2xsec Date: Tue, 3 Jul 2018 09:09:32 +0000 (+0900) Subject: tests: cleanup api_reboot.c X-Git-Tag: lxc-3.1.0~221^2~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2e338007c7801b52385dc4b061fd085199b069f0;p=thirdparty%2Flxc.git tests: cleanup api_reboot.c Signed-off-by: 2xsec --- diff --git a/src/tests/api_reboot.c b/src/tests/api_reboot.c index d169510b5..730d6a81a 100644 --- a/src/tests/api_reboot.c +++ b/src/tests/api_reboot.c @@ -59,6 +59,7 @@ int main(int argc, char *argv[]) lxc_error("%s\n", "Container \"reboot\" is not defined"); goto on_error_put; } + c->clear_config(c); if (!c->load_config(c, NULL)) { @@ -118,7 +119,9 @@ on_error_stop: on_error_put: lxc_container_put(c); + if (ret == EXIT_SUCCESS) lxc_debug("%s\n", "All reboot tests passed"); + exit(ret); }