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
7b9005a7
Commit
7b9005a7
authored
Apr 24, 2016
by
Luca Boccassi
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1923 from hitstergtd/testxpubmanual-msvc-fix
Problem: XPUB test broken since #1566 on Windows
parents
fb015569
88728093
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
7 deletions
+16
-7
test_xpub_manual.cpp
tests/test_xpub_manual.cpp
+16
-7
No files found.
tests/test_xpub_manual.cpp
View file @
7b9005a7
...
@@ -90,10 +90,11 @@ int test_basic()
...
@@ -90,10 +90,11 @@ int test_basic()
return
0
;
return
0
;
}
}
int
test_xpub_proxy_unsubscribe_on_disconnect
()
int
test_xpub_proxy_unsubscribe_on_disconnect
(
const
char
*
frontend
,
const
char
*
backend
)
{
{
const
char
*
frontend
=
"ipc://frontend"
;
assert
(
frontend
&&
backend
)
;
const
char
*
backend
=
"ipc://backend"
;
const
char
*
topic
=
"1"
;
const
char
*
topic
=
"1"
;
const
char
*
payload
=
"X"
;
const
char
*
payload
=
"X"
;
...
@@ -348,12 +349,20 @@ int main(void)
...
@@ -348,12 +349,20 @@ int main(void)
{
{
setup_test_environment
();
setup_test_environment
();
test_basic
();
test_basic
();
test_xpub_proxy_unsubscribe_on_disconnect
();
const
char
*
frontend
;
const
char
*
backend
;
#if !defined ZMQ_HAVE_WINDOWS && !defined ZMQ_HAVE_OPENVMS
#if !defined ZMQ_HAVE_WINDOWS && !defined ZMQ_HAVE_OPENVMS
test_missing_subscriptions
(
"ipc://frontend"
,
"ipc://backend"
);
frontend
=
"ipc://frontend"
;
backend
=
"ipc://backend"
;
test_xpub_proxy_unsubscribe_on_disconnect
(
frontend
,
backend
);
test_missing_subscriptions
(
frontend
,
backend
);
#endif
#endif
test_missing_subscriptions
(
"tcp://127.0.0.1:5560"
,
frontend
=
"tcp://127.0.0.1:5560"
;
"tcp://127.0.0.1:5561"
);
backend
=
"tcp://127.0.0.1:5561"
;
test_xpub_proxy_unsubscribe_on_disconnect
(
frontend
,
backend
);
test_missing_subscriptions
(
frontend
,
backend
);
return
0
;
return
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