Commit bd7bddb8 authored by Pavel Emelyanov's avatar Pavel Emelyanov

zdtm: Add test for mount namespace w/o mountpoints

Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
Acked-by: 's avatarAndrew Vagin <avagin@parallels.com>
parent 701f8837
...@@ -138,6 +138,7 @@ ns/static/tun ...@@ -138,6 +138,7 @@ ns/static/tun
static/netns-nf static/netns-nf
static/netns static/netns
static/cgroup00 static/cgroup00
ns/static/clean_mntns
" "
TEST_CR_KERNEL=" TEST_CR_KERNEL="
...@@ -168,6 +169,7 @@ bind-mount ...@@ -168,6 +169,7 @@ bind-mount
mountpoints mountpoints
inotify_irmap inotify_irmap
cgroup00 cgroup00
clean_mntns
" "
source $(readlink -f `dirname $0`/env.sh) || exit 1 source $(readlink -f `dirname $0`/env.sh) || exit 1
......
...@@ -108,6 +108,7 @@ TST_NOFILE = \ ...@@ -108,6 +108,7 @@ TST_NOFILE = \
tun \ tun \
stopped \ stopped \
rtc \ rtc \
clean_mntns \
# jobctl00 \ # jobctl00 \
TST_FILE = \ TST_FILE = \
......
#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)
err("Can't umount proc\n");
if (umount("/dev/pts") < 0)
err("Can't umount devpts\n");
test_daemon();
test_waitsig();
pass();
return 0;
}
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