Fix spurious failure of style.test.

* src/sanity/style.test: Make sure sh does not abort when read
exits with false.
This commit is contained in:
Alexandre Duret-Lutz 2009-11-04 18:10:48 +01:00
parent 6fb7e9faff
commit 24527d6f99
2 changed files with 11 additions and 3 deletions

View file

@ -1,3 +1,10 @@
2009-11-04 Alexandre Duret-Lutz <adl@lrde.epita.fr>
Fix spurious failure of style.test.
* src/sanity/style.test: Make sure sh does not abort when read
exits with false.
2009-11-04 Alexandre Duret-Lutz <adl@lrde.epita.fr>
Fix a longstanding bug reported by Kristin Y. Rozier..

View file

@ -1,4 +1,3 @@
#! /bin/sh
# Ensure consistent style by catching common improper constructs.
@ -180,9 +179,9 @@ for dir in "${INCDIR-..}" "${INCDIR-..}"/../iface; do
;;
esac
$fail && echo "$file" >>failures
done
done || : # Make sure sh does not abort when read exits with false.
done
if test -f failures; then
@ -191,3 +190,5 @@ if test -f failures; then
rm failures
exit 1;
fi
exit 0