ipc: add a simple unit test
Correct return value of ipc_channel_put(), since it may return an error if the channel is closed. Make get/put functions inline. Remove a public declaration for ipc_channel_is_readonly() (towards removing the concept of readonly altogether).
Showing
- src/ipc.cc 3 additions, 13 deletionssrc/ipc.cc
- src/ipc.h 43 additions, 35 deletionssrc/ipc.h
- test/unit/CMakeLists.txt 4 additions, 1 deletiontest/unit/CMakeLists.txt
- test/unit/ipc.cc 63 additions, 25 deletionstest/unit/ipc.cc
- test/unit/ipc.result 23 additions, 2 deletionstest/unit/ipc.result
- test/unit/ipc_stress.cc 55 additions, 0 deletionstest/unit/ipc_stress.cc
- test/unit/ipc_stress.result 3 additions, 0 deletionstest/unit/ipc_stress.result
Loading
Please register or sign in to comment