mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-31 14:25:49 +00:00
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>
26 lines
450 B
C
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;
|
|
}
|