From: Matthias Kruk Date: Sat, 17 Sep 2022 05:17:38 +0000 (+0900) Subject: test/ipc: Fix comparisons in test cases for ipc_endpoint_recv() X-Git-Url: https://git.corax.cc/?a=commitdiff_plain;h=bdebeda420db3e2ccccaa388120ce593accdbbc1;p=toolbox test/ipc: Fix comparisons in test cases for ipc_endpoint_recv() 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. --- diff --git a/test/ipc_spec.sh b/test/ipc_spec.sh index a8a52b4..1f956b4 100644 --- a/test/ipc_spec.sh +++ b/test/ipc_spec.sh @@ -625,7 +625,7 @@ Describe "ipc_endpoint_recv" 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 @@ -655,7 +655,7 @@ Describe "ipc_endpoint_recv" 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