mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-13 10:52:56 +01:00
Problem: XPUB test broken since #1566 on Windows
Solution: - Adjust test_xpub_proxy_unsubscribe_disconnect() to support different protocol types - Exclude the IPC tests on Windows and OpenVMS H/T: @somdoron
This commit is contained in:
parent
fb015569a2
commit
8872809337
@ -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)
|
|||||||
{
|
{
|
||||||
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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user