Just disable it for a while, otherwise we get
in test/zdtm/live/streaming/netlink00.c
cc1: warnings being treated as errors
netlink00.c: In function ‘form_request_del’:
netlink00.c:311: error: dereferencing pointer ‘rtap’ does break strict-aliasing rules
netlink00.c:312: error: dereferencing pointer ‘rtap’ does break strict-aliasing rules
netlink00.c:310: note: initialized from here
netlink00.c: In function ‘form_request_add’:
netlink00.c:271: error: dereferencing pointer ‘rtap’ does break strict-aliasing rules
netlink00.c:272: error: dereferencing pointer ‘rtap’ does break strict-aliasing rules
netlink00.c:270: note: initialized from here
Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Plus a small infrastructure change to fork a test task
in a desired namespace.
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
And increase the timeout value, since the timers test checks for counters
for more than 5 seconds...
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
To test restore of commandline, envirion
and auxv vector.
Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Acked-by: Pavel Emelyanov <xemul@parallels.com>
Test that 2 different exit()-ed zombies and 2 killed with different
signals are handled properly.
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
I haven't found anything similar in there.
It currently just fails most of the launches because seize doesn't work
with zombies, but I'm working on it...
However, when it manages to miss the zombie it triggers the problem with
freezer (fixed by previous patch).
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
This reverts commit 46dc368f31.
There will be another one. Instead of hard rebase I decide to
do a revert instead.
Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
This test is based on socket_aio. It's actually the same, except that socket
binding and listening is done before checkpointing and connection to socket is
done after migration.
Signed-off-by: Stanislav Kinsbursky <skinsbursky@parallels.com>
Acked-by: Pavel Emelyanov <xemul@parallels.com>
Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Otherwise it pops up after restore in target task's fdtable.
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Add the -l option to show the list of tests
Make the default zdtm/live/ prefix when running individual test
Now you can do it like
# sh ./zdtm.sh for running all tests
# sh ./zdtm.sh -l to list available tests
# sh ./zdtm.sh <test> to run test <test>, e.g. "static/pipe00"
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
To include dgram bound && connected sockets, for example
CR_FD_UNIXSK: /home/cyrill/crtools/unixsk-2813.img
----------------------------------------
fd 3 type 1 state 1 namelen 0 backlog 0 id 19505 peer 19506
fd 4 type 1 state 1 namelen 0 backlog 0 id 19506 peer 19505
fd 5 type 2 state 7 namelen 0 backlog 0 id 19507 peer 0
fd 6 type 2 state 7 namelen 18 backlog 18 id 19508 peer 0 --> test-socket-bound
fd 7 type 2 state 7 namelen 0 backlog 0 id 19509 peer 19510
fd 8 type 2 state 7 namelen 17 backlog 17 id 19510 peer 0 --> test-socket-conn
fd 9 type 2 state 7 namelen 23 backlog 23 id 19511 peer 19511 --> test-socket-bound-conn
----------------------------------------
The last one is bound and connected.
Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
If you execute this script without arguments, it will execute
all test cases, which should pass.
Or the first argument may be a path to the test case.
Signed-off-by: Andrey Vagin <avagin@openvz.org>
Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Probably all of you know about "lock inversion". We have a similar
problem on restoring pipes.
This test case creates two process and two pipes.
process 1:
11: pipe1 (w)
12: pipe2 (r)
process 2:
11: pipe2 (r)
12: pipe1 (w)
Signed-off-by: Andrey Vagin <avagin@openvz.org>
Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
This test suite contains many small test cases for different subsystems.
Example of execution:
# make busyloop00.pid
# ../../../../crtools -d -t `cat busyloop00.pid`
# kill -9 `cat busyloop00.pid`
# ../../../../crtools -r -t `cat busyloop00.pid`
# cat busyloop00.out
PASS
Signed-off-by: Andrey Vagin <avagin@openvz.org>
Acked-by: Pavel Emelyanov <xemul@parallels.com>
Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>