mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-27 07:31:03 +08:00
tests: fix abstract ipc test by omitting slashes
This commit is contained in:
parent
4c4ca1f2f6
commit
69bd470103
@ -146,5 +146,5 @@ TESTS = $(noinst_PROGRAMS)
|
||||
XFAIL_TESTS =
|
||||
|
||||
if !ON_LINUX
|
||||
XFAIL_TESTS += test_abstract_ipc
|
||||
XFAIL_TESTS +=
|
||||
endif
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user