Skip to content

Commit be238fb

Browse files
committed
Fix ipc_file_prov_fsdax test: should use two different files
Fix ipc_file_prov_fsdax test: producer and consumer should use two different FSDAX files. Signed-off-by: Lukasz Dorau <lukasz.dorau@intel.com>
1 parent ca173a7 commit be238fb

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

test/ipc_file_prov_fsdax.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,13 @@ if [ "$UMF_TESTS_FSDAX_PATH" = "" ]; then
1414
exit 0
1515
fi
1616

17+
if [ "$UMF_TESTS_FSDAX_PATH_2" = "" ]; then
18+
echo "$0: Test skipped, UMF_TESTS_FSDAX_PATH_2 is not set";
19+
exit 0
20+
fi
21+
1722
FILE_NAME="$UMF_TESTS_FSDAX_PATH"
23+
FILE_NAME_2="$UMF_TESTS_FSDAX_PATH_2"
1824

1925
# port should be a number from the range <1024, 65535>
2026
PORT=$(( 1024 + ( $$ % ( 65535 - 1024 ))))
@@ -31,7 +37,7 @@ echo "Waiting 1 sec ..."
3137
sleep 1
3238

3339
echo "Starting ipc_file_prov_fsdax PRODUCER on port $PORT ..."
34-
UMF_LOG=$UMF_LOG_VAL ./umf_test-ipc_file_prov_producer $PORT $FILE_NAME "FSDAX"
40+
UMF_LOG=$UMF_LOG_VAL ./umf_test-ipc_file_prov_producer $PORT $FILE_NAME_2 "FSDAX"
3541

3642
# remove the SHM file
3743
rm -f ${FILE_NAME}

0 commit comments

Comments
 (0)