Skip to content

Commit

Permalink
tests: cleanup api_reboot.c
Browse files Browse the repository at this point in the history
Signed-off-by: 2xsec <dh48.jeong@samsung.com>
  • Loading branch information
2xsec committed Jul 3, 2018
1 parent abbec8b commit 2e33800
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/tests/api_reboot.c
Expand Up @@ -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)) {
Expand Down Expand Up @@ -118,7 +119,9 @@ int main(int argc, char *argv[])

on_error_put:
lxc_container_put(c);

if (ret == EXIT_SUCCESS)
lxc_debug("%s\n", "All reboot tests passed");

exit(ret);
}

0 comments on commit 2e33800

Please sign in to comment.