test_bind_src_address.cpp
Go to the documentation of this file.
1 /* SPDX-License-Identifier: MPL-2.0 */
2 
3 #include "testutil.hpp"
4 #include "testutil_unity.hpp"
5 
7 
8 void test_x ()
9 {
11 
13  zmq_connect (sock, "tcp://127.0.0.1:0;localhost:1234"));
15  zmq_connect (sock, "tcp://localhost:5555;localhost:1235"));
17  zmq_connect (sock, "tcp://lo:5555;localhost:1235"));
18 
20 }
21 
22 int main (void)
23 {
25 
26  UNITY_BEGIN ();
27  RUN_TEST (test_x);
28  return UNITY_END ();
29 }
UNITY_END
return UNITY_END()
ZMQ_PUB
#define ZMQ_PUB
Definition: zmq.h:259
sock
void * sock
Definition: test_connect_resolve.cpp:9
RUN_TEST
#define RUN_TEST(func)
Definition: unity_internals.h:615
SETUP_TEARDOWN_TESTCONTEXT
#define SETUP_TEARDOWN_TESTCONTEXT
Definition: testutil_unity.hpp:172
zmq_connect
ZMQ_EXPORT int zmq_connect(void *s_, const char *addr_)
Definition: zmq.cpp:307
testutil_unity.hpp
testutil.hpp
test_context_socket
void * test_context_socket(int type_)
Definition: testutil_unity.cpp:200
test_x
SETUP_TEARDOWN_TESTCONTEXT void test_x()
Definition: test_bind_src_address.cpp:8
setup_test_environment
void setup_test_environment(int timeout_seconds_)
Definition: testutil.cpp:201
UNITY_BEGIN
UNITY_BEGIN()
main
int main(void)
Definition: test_bind_src_address.cpp:22
test_context_socket_close
void * test_context_socket_close(void *socket_)
Definition: testutil_unity.cpp:208
TEST_ASSERT_SUCCESS_ERRNO
#define TEST_ASSERT_SUCCESS_ERRNO(expr)
Definition: proxy_thr.cpp:47


libaditof
Author(s):
autogenerated on Wed May 21 2025 02:06:59