mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-19 21:16:54 +02:00
Problem: tests use same IPC endpoint
Solution: use either a wildcard IPC, or where the codepath needs to be tested a file named after the test, so that it is unique and there is no clash on the filesystem, allowing parallel test runs.
This commit is contained in:
@@ -37,12 +37,12 @@ int main (void)
|
||||
|
||||
void *sb = zmq_socket (ctx, ZMQ_PAIR);
|
||||
assert (sb);
|
||||
int rc = zmq_bind (sb, "ipc:///tmp/tester");
|
||||
int rc = zmq_bind (sb, "ipc:///tmp/test_pair_ipc");
|
||||
assert (rc == 0);
|
||||
|
||||
void *sc = zmq_socket (ctx, ZMQ_PAIR);
|
||||
assert (sc);
|
||||
rc = zmq_connect (sc, "ipc:///tmp/tester");
|
||||
rc = zmq_connect (sc, "ipc:///tmp/test_pair_ipc");
|
||||
assert (rc == 0);
|
||||
|
||||
bounce (sb, sc);
|
||||
|
Reference in New Issue
Block a user