]> git.corax.cc Git - toolbox/commitdiff
test/ipc: Fix return values in test case for ipc_endpoint_open()
authorMatthias Kruk <m@m10k.eu>
Sat, 17 Sep 2022 05:17:01 +0000 (14:17 +0900)
committerMatthias Kruk <m@m10k.eu>
Sat, 17 Sep 2022 05:17:01 +0000 (14:17 +0900)
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

index 447f0d53764eb12743667912633da829bd95b2de..a8a52b417833492121cf42081a30416935a1b8b9 100644 (file)
@@ -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"