Commit 08ab48c
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
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
0 commit comments