From ac6a2b254a65b39cfbb693fbdeba0cb60716b8ed Mon Sep 17 00:00:00 2001 From: Lukasz Dorau Date: Thu, 27 Feb 2025 07:59:42 +0100 Subject: [PATCH] Remove old SHM files left from the previous runs, because of crashes Remove old SHM files /tmp/umf_file_provider_* (at the beginning of the test) left from the previous runs, because of crashes of the ipc_file_prov test. Signed-off-by: Lukasz Dorau --- test/ipc_file_prov.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/ipc_file_prov.sh b/test/ipc_file_prov.sh index 629b2cbb79..ffb849f25a 100755 --- a/test/ipc_file_prov.sh +++ b/test/ipc_file_prov.sh @@ -9,7 +9,12 @@ set -e -FILE_NAME="/tmp/umf_file_provider_$$" +FILE_BASE="/tmp/umf_file_provider" + +# remove old SHM files (left from the previous runs, because of crashes) +rm -f ${FILE_BASE}* + +FILE_NAME="${FILE_BASE}_$$" # port should be a number from the range <1024, 65535> PORT=$(( 1024 + ( $$ % ( 65535 - 1024 ))))