Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
L
libzmq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
libzmq
Commits
08d897b1
Commit
08d897b1
authored
Jan 03, 2014
by
Pieter Hintjens
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #804 from mattconnolly/master
Update test_filter_ipc to not use abstract socket.
parents
b5d2239a
8c3e6450
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
test_abstract_ipc.cpp
tests/test_abstract_ipc.cpp
+2
-2
test_filter_ipc.cpp
tests/test_filter_ipc.cpp
+5
-4
No files found.
tests/test_abstract_ipc.cpp
View file @
08d897b1
...
...
@@ -25,7 +25,7 @@ int main (void)
void
*
ctx
=
zmq_ctx_new
();
assert
(
ctx
);
void
*
sb
=
zmq_socket
(
ctx
,
ZMQ_
PAI
R
);
void
*
sb
=
zmq_socket
(
ctx
,
ZMQ_
DEALE
R
);
assert
(
sb
);
int
rc
=
zmq_bind
(
sb
,
"ipc://@/tmp/tester"
);
assert
(
rc
==
0
);
...
...
@@ -37,7 +37,7 @@ int main (void)
rc
=
strncmp
(
endpoint
,
"ipc://@/tmp/tester"
,
size
);
assert
(
rc
==
0
);
void
*
sc
=
zmq_socket
(
ctx
,
ZMQ_
PAI
R
);
void
*
sc
=
zmq_socket
(
ctx
,
ZMQ_
DEALE
R
);
assert
(
sc
);
rc
=
zmq_connect
(
sc
,
"ipc://@/tmp/tester"
);
assert
(
rc
==
0
);
...
...
tests/test_filter_ipc.cpp
View file @
08d897b1
...
...
@@ -60,7 +60,7 @@ static void run_test (int opt, T optval, int expected_error, int bounce_test)
void
*
ctx
=
zmq_ctx_new
();
assert
(
ctx
);
void
*
sb
=
zmq_socket
(
ctx
,
ZMQ_
PAI
R
);
void
*
sb
=
zmq_socket
(
ctx
,
ZMQ_
DEALE
R
);
assert
(
sb
);
if
(
opt
)
{
...
...
@@ -73,7 +73,7 @@ static void run_test (int opt, T optval, int expected_error, int bounce_test)
}
}
void
*
sc
=
zmq_socket
(
ctx
,
ZMQ_
PAI
R
);
void
*
sc
=
zmq_socket
(
ctx
,
ZMQ_
DEALE
R
);
assert
(
sc
);
// If a test fails, don't hang for too long
...
...
@@ -91,10 +91,11 @@ static void run_test (int opt, T optval, int expected_error, int bounce_test)
assert
(
rc
==
0
);
if
(
bounce_test
)
{
int
rc
=
zmq_bind
(
sb
,
"ipc://@/tmp/test"
);
const
char
*
endpoint
=
"ipc://test_filter_ipc.sock"
;
int
rc
=
zmq_bind
(
sb
,
endpoint
);
assert
(
rc
==
0
);
rc
=
zmq_connect
(
sc
,
"ipc://@/tmp/test"
);
rc
=
zmq_connect
(
sc
,
endpoint
);
assert
(
rc
==
0
);
if
(
bounce_test
>
0
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment