Lines Matching refs:chan
34 static void dlmalloc_srv_rpc_expect(handle_t chan, in dlmalloc_srv_rpc_expect() argument
42 ret = tipc_send1(chan, &msg, sizeof(msg)); in dlmalloc_srv_rpc_expect()
46 ret = wait(chan, &evt, INFINITE_TIME); in dlmalloc_srv_rpc_expect()
57 ret = tipc_recv1(chan, sizeof(msg), &msg, sizeof(msg)); in dlmalloc_srv_rpc_expect()
64 static void dlmalloc_srv_rpc(handle_t chan, enum dlmalloc_test_command cmd) { in dlmalloc_srv_rpc() argument
65 dlmalloc_srv_rpc_expect(chan, cmd, NO_ERROR); in dlmalloc_srv_rpc()
69 handle_t chan; member
73 _state->chan = INVALID_IPC_HANDLE; in TEST_F_SETUP()
74 ASSERT_EQ(tipc_connect(&_state->chan, DLMALLOC_TEST_SRV_PORT), 0); in TEST_F_SETUP()
80 close(_state->chan); in TEST_F_TEARDOWN()
84 dlmalloc_srv_rpc(_state->chan, DLMALLOC_TEST_NOP); in TEST_F()
88 dlmalloc_srv_rpc(_state->chan, DLMALLOC_TEST_ONE_MALLOC); in TEST_F()
92 dlmalloc_srv_rpc(_state->chan, DLMALLOC_TEST_ONE_CALLOC); in TEST_F()
96 dlmalloc_srv_rpc(_state->chan, DLMALLOC_TEST_ONE_REALLOC); in TEST_F()
100 dlmalloc_srv_rpc(_state->chan, DLMALLOC_TEST_MANY_MALLOC); in TEST_F()
104 dlmalloc_srv_rpc(_state->chan, DLMALLOC_TEST_ONE_NEW); in TEST_F()
108 dlmalloc_srv_rpc(_state->chan, DLMALLOC_TEST_ONE_NEW_ARR); in TEST_F()
112 dlmalloc_srv_rpc(_state->chan, DLMALLOC_TEST_MALLOC_AND_NEW); in TEST_F()
116 dlmalloc_srv_rpc_expect(_state->chan, DLMALLOC_TEST_DOUBLE_FREE, in TEST_F()
121 dlmalloc_srv_rpc_expect(_state->chan, DLMALLOC_TEST_REALLOC_AFTER_FREE, in TEST_F()
126 dlmalloc_srv_rpc(_state->chan, DLMALLOC_TEST_ALLOC_LARGE); in TEST_F()