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: