From: 2xsec Date: Tue, 3 Jul 2018 09:17:03 +0000 (+0900) Subject: tests: cleanup device_add_remove.c X-Git-Tag: lxc-3.1.0~221^2~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e9432dfc50591a4d0048fd70b8e6cec49f57bb30;p=thirdparty%2Flxc.git tests: cleanup device_add_remove.c Signed-off-by: 2xsec --- diff --git a/src/tests/device_add_remove.c b/src/tests/device_add_remove.c index c776729bf..4a2e95138 100644 --- a/src/tests/device_add_remove.c +++ b/src/tests/device_add_remove.c @@ -50,6 +50,7 @@ int main(int argc, char *argv[]) fprintf(stderr, "Adding %s to the container (%s) failed...\n", DEVICE, NAME); goto out; } + if (!c->remove_device_node(c, DEVICE, DEVICE)) { fprintf(stderr, "Removing %s from the container (%s) failed...\n", DEVICE, NAME); goto out; @@ -64,6 +65,7 @@ int main(int argc, char *argv[]) fprintf(stderr, "Destroying the container (%s) failed...\n", NAME); goto out; } + ret = 0; out: