2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-31 06:15:24 +00:00

test: fix same socket names in socket-{dgram_data, snd_addr}

Those two tests use same socket name and if both of them are run
simultaneously, they would fight for socket and one will get EADDRINUSE.
This patch gives socket_dgram_data an unique name, so that everyone will
be happy.

travis-ci: success for test: fix same socket names in socket-{dgram_data, snd_addr}
Acked-by: Cyrill Gorcunov <gorcunov@openvz.org>

Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
This commit is contained in:
Vitaly Ostrosablin
2016-11-29 16:29:00 +03:00
committed by Pavel Emelyanov
parent af74019d66
commit c64010fe2d

View File

@@ -11,7 +11,7 @@
const char *test_doc = "Check that data in dgram socket are restored correctly";
const char *test_author = "Andrew Vagin <avagin@openvz.org";
#define SK_SRV "\0socket_snd_srv"
#define SK_SRV "\0socket_dgram_srv"
#define MSG "hello"
int main(int argc, char **argv)