Skip to content

Commit 08ab48c

Browse files
committed
test(message_channel): add protocol and channel tests
28 tests covering: - serialize/deserialize wire format for all 5 message types - fd transfer with SCM_RIGHTS (count and fstat validity) - parent/child role semantics: wait_for, wait_for_exec phases, proceed handshake - error paths: unknown msg_id, unknown stage type, empty fds, fd limit, report_error on closed socket Signed-off-by: Yuming He <ComixHe1895@outlook.com>
1 parent 30b91d1 commit 08ab48c

2 files changed

Lines changed: 478 additions & 2 deletions

File tree

tests/ll-box-ut/CMakeLists.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
include(GoogleTest)
22

33
set(linyaps-box_UNIT_TESTS ll-box-ut)
4-
set(linyaps-box_UNIT_TESTS_SOURCE ./src/test.cpp ./src/semver_test.cpp
5-
./src/span_test.cpp)
4+
set(linyaps-box_UNIT_TESTS_SOURCE
5+
./src/test.cpp ./src/semver_test.cpp ./src/span_test.cpp
6+
./src/message_channel_test.cpp)
67
set(linyaps-box_UNIT_TESTS_LINK_LIBRARIES PRIVATE "${linyaps-box_LIBRARY}")
78
set(linyaps-box_UNIT_TESTS_SOURCE_INCLUDE_DIRS
89
PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/src")

0 commit comments

Comments
 (0)