Unverified Commit a95b215c by 2xsec Committed by Christian Brauner

tests: cleanup device_add_remove.c

Signed-off-by: 's avatar2xsec <dh48.jeong@samsung.com>
parent 55ac3cd0
...@@ -50,6 +50,7 @@ int main(int argc, char *argv[]) ...@@ -50,6 +50,7 @@ int main(int argc, char *argv[])
fprintf(stderr, "Adding %s to the container (%s) failed...\n", DEVICE, NAME); fprintf(stderr, "Adding %s to the container (%s) failed...\n", DEVICE, NAME);
goto out; goto out;
} }
if (!c->remove_device_node(c, DEVICE, DEVICE)) { if (!c->remove_device_node(c, DEVICE, DEVICE)) {
fprintf(stderr, "Removing %s from the container (%s) failed...\n", DEVICE, NAME); fprintf(stderr, "Removing %s from the container (%s) failed...\n", DEVICE, NAME);
goto out; goto out;
...@@ -64,6 +65,7 @@ int main(int argc, char *argv[]) ...@@ -64,6 +65,7 @@ int main(int argc, char *argv[])
fprintf(stderr, "Destroying the container (%s) failed...\n", NAME); fprintf(stderr, "Destroying the container (%s) failed...\n", NAME);
goto out; goto out;
} }
ret = 0; ret = 0;
out: out:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment