From 25e007f09a0e1bdcd346fe22f097fb7baaeb5060 Mon Sep 17 00:00:00 2001 From: Matthias Kruk Date: Sat, 17 Sep 2022 14:16:24 +0900 Subject: [PATCH] test/ipc: Make setup() function idempotent The setup() function in the test spec for the ipc module is not idempotent, causing the second and all subsequent test cases that use it to fail. This commit modifies the setup() function so that it does not fail if it is called more than once. --- test/ipc_spec.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/ipc_spec.sh b/test/ipc_spec.sh index 73da379..447f0d5 100644 --- a/test/ipc_spec.sh +++ b/test/ipc_spec.sh @@ -20,7 +20,7 @@ include "ipc" setup() { - if ! mkdir "/tmp/test.$$"; then + if ! mkdir -p "/tmp/test.$$"; then return 1 fi -- 2.47.3