From bdebeda420db3e2ccccaa388120ce593accdbbc1 Mon Sep 17 00:00:00 2001 From: Matthias Kruk Date: Sat, 17 Sep 2022 14:17:38 +0900 Subject: [PATCH] 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. --- test/ipc_spec.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.47.3