Skip to content

Commit 3fc5fbc

Browse files
authored
Merge pull request #1142 from ldorau/Remove_old_SHM_files_left_from_the_previous_runs_because_of_crashes
Remove old SHM files left from the previous runs because of crashes
2 parents 0e3d3e4 + ac6a2b2 commit 3fc5fbc

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test/ipc_file_prov.sh

+6-1
Original file line numberDiff line numberDiff line change
@@ -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)