summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2019-01-01 12:04:11 -0800
committerGarrett D'Amore <garrett@damore.org>2019-01-01 18:24:25 -0800
commit37eaa558cb144fe307d7305514b58c732cb099d4 (patch)
treef0cb25bb5b1adb99010f2d969d277db5f8531781 /tests
parent573cdf8c8aff43c5cda2b3d090c7916bb3507a23 (diff)
downloadnng-37eaa558cb144fe307d7305514b58c732cb099d4.tar.gz
nng-37eaa558cb144fe307d7305514b58c732cb099d4.tar.bz2
nng-37eaa558cb144fe307d7305514b58c732cb099d4.zip
fixes #837 ipcsupp occasional test failure
Diffstat (limited to 'tests')
-rw-r--r--tests/ipcsupp.c6
1 files 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. <info@staysail.tech>
+// Copyright 2019 Staysail Systems, Inc. <info@staysail.tech>
// Copyright 2018 Capitar IT Group BV <info@capitar.com>
// Copyright 2018 Devolutions <info@devolutions.net>
//
@@ -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);