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

Submitted by Vitaly Ostrosablin on Nov. 29, 2016, 1:29 p.m.

Details

Message ID 20161129132936.14458-1-vostrosablin@virtuozzo.com
State Accepted
Series "test: fix same socket names in socket-{dgram_data, snd_addr}"
Commit 11e78e4e8b43758415d58f2791ab4523d4005eae
Headers show

Commit Message

Vitaly Ostrosablin Nov. 29, 2016, 1:29 p.m.
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(-)

Patch hide | download patch | download mbox

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@openvz.org";
 
-#define SK_SRV "\0socket_snd_srv"
+#define SK_SRV "\0socket_dgram_srv"
 
 #define MSG "hello"
 int main(int argc, char **argv)

Comments

Cyrill Gorcunov Nov. 29, 2016, 2:09 p.m.
On Tue, Nov 29, 2016 at 04:29:36PM +0300, Vitaly Ostrosablin wrote:
> 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.
>
Acked-by: Cyrill Gorcunov <gorcunov@openvz.org>
Pavel Emelianov Nov. 30, 2016, 8:55 a.m.
Applied