mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-15 19:35:59 +00:00
tests: cleanup device_add_remove.c
Signed-off-by: 2xsec <dh48.jeong@samsung.com>
This commit is contained in:
parent
8d72e58a24
commit
e9432dfc50
@ -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[])
|
|||||||
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:
|
||||||
|
Loading…
Reference in New Issue
Block a user