Signed-off-by: S.Çağlar Onur <cag...@10ur.org> --- src/tests/snapshot.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/src/tests/snapshot.c b/src/tests/snapshot.c index 8f16548..ef3f9c2 100644 --- a/src/tests/snapshot.c +++ b/src/tests/snapshot.c @@ -118,8 +118,19 @@ int main(int argc, char *argv[]) goto err; } - printf("All tests passed\n"); + if (!c->snapshot_destroy(c, "snap0")) { + fprintf(stderr, "%s: %d: failed to destroy snapshot\n", __FILE__, __LINE__); + goto err; + } + + if (!c->destroy(c)) { + fprintf(stderr, "%s: %d: failed to destroy container\n", __FILE__, __LINE__); + goto err; + } + lxc_container_put(c); + printf("All tests passed\n"); + try_to_remove(); exit(0); err: -- 1.8.1.2 ------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk _______________________________________________ Lxc-devel mailing list Lxc-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-devel