Commit 1ddcd443 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Andrei Vagin

test: shm-unaligned -- Use unique key

For convenient simultaneous run.
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
parent 32997598
...@@ -454,6 +454,8 @@ socket-tcp6-unconn: CFLAGS += -D ZDTM_IPV6 ...@@ -454,6 +454,8 @@ socket-tcp6-unconn: CFLAGS += -D ZDTM_IPV6
pty-console: CFLAGS += -D ZDTM_DEV_CONSOLE pty-console: CFLAGS += -D ZDTM_DEV_CONSOLE
shm-unaligned: CFLAGS += -DZDTM_SHM_UNALIGNED
$(LIB): force $(LIB): force
$(Q) $(MAKE) -C $(LIBDIR) $(Q) $(MAKE) -C $(LIBDIR)
......
...@@ -111,7 +111,11 @@ int main(int argc, char **argv) ...@@ -111,7 +111,11 @@ int main(int argc, char **argv)
test_init(argc, argv); test_init(argc, argv);
#ifdef ZDTM_SHM_UNALIGNED
key = ftok(argv[0], 822155666); key = ftok(argv[0], 822155666);
#else
key = ftok(argv[0], 822155667);
#endif
if (key == -1) { if (key == -1) {
pr_perror("Can't make key"); pr_perror("Can't make key");
goto out; goto out;
......
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