[CRIU] [PATCH] test: fix same socket names in socket-{dgram_data, snd_addr}

Vitaly Ostrosablin vostrosablin at virtuozzo.com
Tue Nov 29 05:29:36 PST 2016


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.

PSBM-56098
---
 test/zdtm/static/socket_dgram_data.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/zdtm/static/socket_dgram_data.c b/test/zdtm/static/socket_dgram_data.c
index ec79a38..7464a46 100644
--- a/test/zdtm/static/socket_dgram_data.c
+++ b/test/zdtm/static/socket_dgram_data.c
@@ -11,7 +11,7 @@
 const char *test_doc	= "Check that data in dgram socket are restored correctly";
 const char *test_author	= "Andrew Vagin <avagin at openvz.org";
 
-#define SK_SRV "\0socket_snd_srv"
+#define SK_SRV "\0socket_dgram_srv"
 
 #define MSG "hello"
 int main(int argc, char **argv)
-- 
2.10.2



More information about the CRIU mailing list