From: Matthias Kruk Date: Sat, 17 Sep 2022 05:17:01 +0000 (+0900) Subject: test/ipc: Fix return values in test case for ipc_endpoint_open() X-Git-Url: https://git.corax.cc/?a=commitdiff_plain;h=dda7e3745ab257ae67bd2f4473dffa9d17e2a3fd;p=toolbox 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. --- 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"