In the test cases for ipc_endpoint_recv(), the comparisons used to
check the correctness of the received data are inverted, causing the
tests to fail when they should succeed and vice-versa.
This commit inverts the incorrect conditions.
if ipc_endpoint_send "-" "$endpoint" "$data" &&
msg=$(ipc_endpoint_recv "$endpoint") &&
msg=$(ipc_msg_get_data "$msg") &&
- [[ "$msg" != "$data" ]]; then
+ [[ "$msg" == "$data" ]]; then
res=0
fi
if ipc_endpoint_send "-" "$endpoint" "$data" &&
msg=$(ipc_endpoint_recv "$endpoint") &&
msg=$(ipc_msg_get_data "$msg") &&
- [[ "$msg" != "$data" ]]; then
+ [[ "$msg" == "$data" ]]; then
res=0
fi