mirror of https://github.com/CGAL/cgal
autotest_cgal: Do not try to use lockfile on Windows, buggy
This commit is contained in:
parent
f99b88d671
commit
022d7325a3
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue