From 69bd4701032727c453aa7821359ad36dcbe7b780 Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Mon, 5 May 2014 23:04:40 +0200 Subject: [PATCH] tests: fix abstract ipc test by omitting slashes --- tests/Makefile.am | 2 +- tests/test_abstract_ipc.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/Makefile.am b/tests/Makefile.am index 14ecccb0..ee3518f2 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -146,5 +146,5 @@ TESTS = $(noinst_PROGRAMS) XFAIL_TESTS = if !ON_LINUX -XFAIL_TESTS += test_abstract_ipc +XFAIL_TESTS += endif diff --git a/tests/test_abstract_ipc.cpp b/tests/test_abstract_ipc.cpp index ec994bca..c6d87652 100644 --- a/tests/test_abstract_ipc.cpp +++ b/tests/test_abstract_ipc.cpp @@ -27,19 +27,19 @@ int main (void) void *sb = zmq_socket (ctx, ZMQ_DEALER); assert (sb); - int rc = zmq_bind (sb, "ipc://@/tmp/tester"); + int rc = zmq_bind (sb, "ipc://@tmp-tester"); assert (rc == 0); char endpoint[200]; size_t size = sizeof(endpoint); rc = zmq_getsockopt (sb, ZMQ_LAST_ENDPOINT, endpoint, &size); assert (rc == 0); - rc = strncmp(endpoint, "ipc://@/tmp/tester", size); + rc = strncmp(endpoint, "ipc://@tmp-tester", size); assert (rc == 0); void *sc = zmq_socket (ctx, ZMQ_DEALER); assert (sc); - rc = zmq_connect (sc, "ipc://@/tmp/tester"); + rc = zmq_connect (sc, "ipc://@tmp-tester"); assert (rc == 0); bounce (sb, sc);