]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
tests: Remove containers after running clonetest
authorStéphane Graber <stgraber@ubuntu.com>
Fri, 24 Jan 2014 04:20:48 +0000 (23:20 -0500)
committerStéphane Graber <stgraber@ubuntu.com>
Fri, 24 Jan 2014 16:33:40 +0000 (11:33 -0500)
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
src/tests/clonetest.c

index b04ab3c6b29ef18f67806f0a30cbe6510075f7b9..efd673eb1b556550b7bc3d4ab8a4a4fb5ca3ab8c 100644 (file)
@@ -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);