test_bind_after_connect_tcp.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 {
12 
14 
15  send_string_expect_success (sc, "foobar", 0);
16  send_string_expect_success (sc, "baz", 0);
17  send_string_expect_success (sc, "buzz", 0);
18 
20 
21  recv_string_expect_success (sb, "foobar", 0);
22  recv_string_expect_success (sb, "baz", 0);
23  recv_string_expect_success (sb, "buzz", 0);
24 
27 }
28 
29 int main (void)
30 {
32 
33  UNITY_BEGIN ();
34  RUN_TEST (test_x);
35  return UNITY_END ();
36 }
main
int main(void)
Definition: test_bind_after_connect_tcp.cpp:29
UNITY_END
return UNITY_END()
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
ZMQ_DEALER
#define ZMQ_DEALER
Definition: zmq.h:263
sb
void * sb
Definition: test_channel.cpp:8
testutil.hpp
zmq_bind
ZMQ_EXPORT int zmq_bind(void *s_, const char *addr_)
Definition: zmq.cpp:299
sc
void * sc
Definition: test_channel.cpp:9
test_context_socket
void * test_context_socket(int type_)
Definition: testutil_unity.cpp:200
ENDPOINT_3
#define ENDPOINT_3
Definition: libzmq/tests/testutil.hpp:42
send_string_expect_success
void send_string_expect_success(void *socket_, const char *str_, int flags_)
Definition: testutil_unity.cpp:94
test_x
SETUP_TEARDOWN_TESTCONTEXT void test_x()
Definition: test_bind_after_connect_tcp.cpp:8
recv_string_expect_success
void recv_string_expect_success(void *socket_, const char *str_, int flags_)
Definition: testutil_unity.cpp:101
setup_test_environment
void setup_test_environment(int timeout_seconds_)
Definition: testutil.cpp:201
UNITY_BEGIN
UNITY_BEGIN()
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