Skip to content

Commit 0d637fc

Browse files
committed
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 <[email protected]>
1 parent 6b2e8f6 commit 0d637fc

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

test/ipc_file_prov.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (C) 2024 Intel Corporation
2+
# Copyright (C) 2024-2025 Intel Corporation
33
#
44
# Under the Apache License v2.0 with LLVM Exceptions. See LICENSE.TXT.
55
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
@@ -9,7 +9,12 @@
99

1010
set -e
1111

12-
FILE_NAME="/tmp/umf_file_provider_$$"
12+
FILE_BASE="/tmp/umf_file_provider"
13+
14+
# remove old SHM files (left from the previous runs, because of crashes)
15+
rm -f ${FILE_BASE}*
16+
17+
FILE_NAME="${FILE_BASE}_$$"
1318

1419
# port should be a number from the range <1024, 65535>
1520
PORT=$(( 1024 + ( $$ % ( 65535 - 1024 ))))

0 commit comments

Comments
 (0)