2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-31 06:15:24 +00:00
Files
criu/test/zdtm/static/clean_mntns.c
Adrian Reber 93dd984ca0 Run 'make indent' on all C files
Acked-by: Mike Rapoport <rppt@linux.ibm.com>
Signed-off-by: Adrian Reber <areber@redhat.com>
2021-09-03 10:31:00 -07:00

26 lines
450 B
C

#include <errno.h>
#include <unistd.h>
#include <sys/mount.h>
#include "zdtmtst.h"
const char *test_doc = "Check that clean mntns works";
const char *test_author = "Pavel Emelianov <xemul@parallels.com>";
int main(int argc, char **argv)
{
test_init(argc, argv);
if (umount("/proc") < 0)
pr_perror("Can't umount proc");
if (umount("/dev/pts") < 0)
pr_perror("Can't umount devpts");
test_daemon();
test_waitsig();
pass();
return 0;
}