sanity: fix race conditions in the test suite

* tests/sanity/80columns.test, tests/sanity/includes.test,
tests/sanity/private.test, tests/sanity/style.test: Have each test
record failure in a separate file.
This commit is contained in:
Alexandre Duret-Lutz 2016-02-16 17:29:06 +01:00
parent 3a3913cf50
commit 9b5a763538
4 changed files with 22 additions and 22 deletions

View file

@ -25,7 +25,7 @@
set -e
rm -f failures
rm -f failures.inc
INCDIR=${srcdir-.}/../../spot
@ -45,15 +45,15 @@ for file in `find "$INCDIR" \( -name "${1-*}.hh" \
else
echo "Missing, or incorrect include guard." >&2
echo "FAIL: $file"
echo " $file" >> failures
echo " $file" >> failures.inc
continue
fi
echo "PASS: $file"
done
if test -f failures; then
if test -f failures.inc; then
echo "Failed files:"
cat failures
rm failures
cat failures.inc
rm failures.inc
exit 1;
fi