Commit 287b1465 authored by Pavel Emelyanov's avatar Pavel Emelyanov

zdtm: Stop using test_init_ns by transition/ipc

Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
Acked-by: 's avatarAndrew Vagin <avagin@virtuozzo.com>
parent a2b1e9ae
...@@ -202,7 +202,7 @@ generate_test_list() ...@@ -202,7 +202,7 @@ generate_test_list()
ns/static/shm ns/static/shm
ns/static/msgque ns/static/msgque
ns/static/sem ns/static/sem
transition/ipc ns/transition/ipc
ns/static/netns-dev ns/static/netns-dev
static/cgroup00 static/cgroup00
static/cgroup01 static/cgroup01
......
...@@ -63,7 +63,6 @@ $(TST): $(LIB) ...@@ -63,7 +63,6 @@ $(TST): $(LIB)
ptrace.o: override CFLAGS += -pthread ptrace.o: override CFLAGS += -pthread
ptrace: override LDFLAGS += -pthread ptrace: override LDFLAGS += -pthread
ipc: override CFLAGS += -DNEW_IPC_NS
fork2: override CFLAGS += -D FORK2 fork2: override CFLAGS += -D FORK2
thread-bomb.o: override CFLAGS += -pthread thread-bomb.o: override CFLAGS += -pthread
thread-bomb: override LDFLAGS += -pthread thread-bomb: override LDFLAGS += -pthread
......
...@@ -80,7 +80,7 @@ static int child(key_t key) ...@@ -80,7 +80,7 @@ static int child(key_t key)
return res; return res;
} }
static int test_fn(int argc, char **argv) int main(int argc, char **argv)
{ {
key_t key; key_t key;
int sem, shm, pid1, pid2; int sem, shm, pid1, pid2;
...@@ -89,6 +89,8 @@ static int test_fn(int argc, char **argv) ...@@ -89,6 +89,8 @@ static int test_fn(int argc, char **argv)
uint32_t crc; uint32_t crc;
int ret; int ret;
test_init(argc, argv);
key = ftok(argv[0], 822155650); key = ftok(argv[0], 822155650);
if (key == -1) { if (key == -1) {
pr_perror("Can't make key"); pr_perror("Can't make key");
...@@ -198,14 +200,3 @@ out_sem: ...@@ -198,14 +200,3 @@ out_sem:
out: out:
return 0; return 0;
} }
int main(int argc, char **argv)
{
#ifdef NEW_IPC_NS
test_init_ns(argc, argv, CLONE_NEWIPC, test_fn);
#else
test_init(argc, argv);
test_fn(argc, argv);
#endif
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