From e9432dfc50591a4d0048fd70b8e6cec49f57bb30 Mon Sep 17 00:00:00 2001 From: 2xsec Date: Tue, 3 Jul 2018 18:17:03 +0900 Subject: [PATCH] tests: cleanup device_add_remove.c Signed-off-by: 2xsec --- src/tests/device_add_remove.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/tests/device_add_remove.c b/src/tests/device_add_remove.c index c776729bf4..4a2e95138d 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: