autotest_cgal: Do not try to use lockfile on Windows, buggy

This commit is contained in:
Laurent Rineau 2015-09-08 13:08:44 +02:00
parent f99b88d671
commit 022d7325a3
1 changed files with 4 additions and 0 deletions

View File

@ -893,6 +893,8 @@ else
MAKE_CMD='make' MAKE_CMD='make'
fi fi
if [ -z "$IS_CYGWIN" ]; then
# Acquire lock # Acquire lock
lockfile -r 1 "$LOCK_FILE"; lockfile -r 1 "$LOCK_FILE";
if [ ${?} != 0 ]; then if [ ${?} != 0 ]; then
@ -915,6 +917,8 @@ chmod u+w "$LOCK_FILE"
# Put the PID of current process in the lock file # Put the PID of current process in the lock file
echo $$ > "$LOCK_FILE" echo $$ > "$LOCK_FILE"
fi
# that line makes the script remove the lock file in case of unwanted exit # that line makes the script remove the lock file in case of unwanted exit
trap "rm -f \"$LOCK_FILE\"" EXIT HUP INT TERM trap "rm -f \"$LOCK_FILE\"" EXIT HUP INT TERM