From dda7e3745ab257ae67bd2f4473dffa9d17e2a3fd Mon Sep 17 00:00:00 2001 From: Matthias Kruk Date: Sat, 17 Sep 2022 14:17:01 +0900 Subject: [PATCH] test/ipc: Fix return values in test case for ipc_endpoint_open() When testing whether ipc_endpoint_open() correctly opens a private endpoint, the return values of the test case are inverted, causing the test to fail when it should succeed and vice-versa. This commit inverts the return values of the test case. --- 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 447f0d5..a8a52b4 100644 --- a/test/ipc_spec.sh +++ b/test/ipc_spec.sh @@ -496,10 +496,10 @@ Describe "ipc_endpoint_open" return 1 fi - res=0 + res=1 if [[ "$endpoint" == "priv/"* ]]; then - res=1 + res=0 fi ipc_endpoint_close "$endpoint" -- 2.47.3