From 37eaa558cb144fe307d7305514b58c732cb099d4 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Tue, 1 Jan 2019 12:04:11 -0800 Subject: fixes #837 ipcsupp occasional test failure --- tests/ipcsupp.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/ipcsupp.c b/tests/ipcsupp.c index c5f85411..41f6468d 100644 --- a/tests/ipcsupp.c +++ b/tests/ipcsupp.c @@ -1,5 +1,5 @@ // -// Copyright 2018 Staysail Systems, Inc. +// Copyright 2019 Staysail Systems, Inc. // Copyright 2018 Capitar IT Group BV // Copyright 2018 Devolutions // @@ -18,6 +18,7 @@ #include "stubs.h" static uint8_t loopback[4] = { 127, 0, 0, 1 }; +static int num = 0; TestMain("Supplemental IPC", { atexit(nng_fini); @@ -38,9 +39,10 @@ TestMain("Supplemental IPC", { memcpy(&ip, loopback, 4); + num++; sa.s_ipc.sa_family = NNG_AF_IPC; snprintf(sa.s_ipc.sa_path, sizeof(sa.s_ipc.sa_path), - "%s", "/tmp/ipc_supp_test"); + "/tmp/ipc_supp_test%d", num); So(nng_ipc_listener_listen(l, &sa) == 0); -- cgit v1.2.3-70-g09d2