[lxc-devel] [PATCH] tests: Remove containers after running clonetest
Serge Hallyn
serge.hallyn at ubuntu.com
Fri Jan 24 05:50:12 UTC 2014
Quoting Stéphane Graber (stgraber at ubuntu.com):
> Signed-off-by: Stéphane Graber <stgraber at ubuntu.com>
Acked-by: Serge E. Hallyn <serge.hallyn at ubuntu.com>
> ---
> src/tests/clonetest.c | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/src/tests/clonetest.c b/src/tests/clonetest.c
> index b04ab3c..efd673e 100644
> --- a/src/tests/clonetest.c
> +++ b/src/tests/clonetest.c
> @@ -80,9 +80,9 @@ int main(int argc, char *argv[])
> // now test with lvm
> // Only do this if clonetestlvm1 exists - user has to set this up
> // in advance
> - //c2->destroy(c2);
> + c2->destroy(c2);
> lxc_container_put(c2);
> - //c->destroy(c);
> + c->destroy(c);
> lxc_container_put(c);
> c = NULL;
>
> @@ -167,11 +167,11 @@ out:
> lxc_container_put(c3);
> }
> if (c2) {
> - //c2->destroy(c2); // keep around to verify manuall
> + c2->destroy(c2);
> lxc_container_put(c2);
> }
> if (c) {
> - //c->destroy(c);
> + c->destroy(c);
> lxc_container_put(c);
> }
> exit(ret);
> --
> 1.8.5.3
>
> _______________________________________________
> lxc-devel mailing list
> lxc-devel at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-devel
More information about the lxc-devel
mailing list