2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-31 14:25:49 +00:00
Files
criu/test/zdtm/static/clean_mntns.c
Pavel Emelyanov 2e13f1f029 test: Get rid of live directory
Move static and transition into zdtm top. We can't move all the micro
tests themselves, as we need to distinguish static from non static (zdtm.py
makes additional checks on static ones).

Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
2016-02-20 13:40:52 +03: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;
}