Skip to content

Commit bea1b6f

Browse files
author
Andras Fekete
committed
Use unique temp file names
1 parent 3df4349 commit bea1b6f

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

scripts/dtls.test

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,10 @@ EOF
9090
)
9191
for i in $PERMUTATIONS;do
9292
echo -e "\nTesting $SIDE permutations order $i...\n"
93-
UDP_LOGFILE=/tmp/udp-$SIDE-$i
94-
rm -f $UDP_LOGFILE
93+
UDP_LOGFILE=$(mktemp)
9594
run_test "-r $i -S $SIDE -l $UDP_LOGFILE" "-Ta -w" "-w"
9695
echo "...produced $(grep -P 'client:|server:' $UDP_LOGFILE | wc -l) messages"
96+
rm -f $UDP_LOGFILE
9797
done
9898
echo "All $SIDE msg permutations succeeded"
9999
}
@@ -112,10 +112,10 @@ EOF
112112
)
113113
for DELAY in $DELAYS;do
114114
echo -e "\nTesting delay $DELAY...\n"
115-
UDP_LOGFILE=/tmp/udp-delay-$DELAY
116-
rm -f $UDP_LOGFILE
115+
UDP_LOGFILE=$(mktemp)
117116
run_test "-l $UDP_LOGFILE -t $DELAY" "-Ta -w" "-w"
118117
echo "...produced $(grep -P 'client:|server:' $UDP_LOGFILE | wc -l) messages"
118+
rm -f $UDP_LOGFILE
119119
done
120120
}
121121

0 commit comments

Comments
 (0)