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:
parent
6fb7e9faff
commit
24527d6f99
2 changed files with 11 additions and 3 deletions
|
|
@ -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>
|
2009-11-04 Alexandre Duret-Lutz <adl@lrde.epita.fr>
|
||||||
|
|
||||||
Fix a longstanding bug reported by Kristin Y. Rozier..
|
Fix a longstanding bug reported by Kristin Y. Rozier..
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
|
|
||||||
# Ensure consistent style by catching common improper constructs.
|
# Ensure consistent style by catching common improper constructs.
|
||||||
|
|
@ -180,9 +179,9 @@ for dir in "${INCDIR-..}" "${INCDIR-..}"/../iface; do
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
||||||
$fail && echo "$file" >>failures
|
$fail && echo "$file" >>failures
|
||||||
done
|
|
||||||
|
done || : # Make sure sh does not abort when read exits with false.
|
||||||
done
|
done
|
||||||
|
|
||||||
if test -f failures; then
|
if test -f failures; then
|
||||||
|
|
@ -191,3 +190,5 @@ if test -f failures; then
|
||||||
rm failures
|
rm failures
|
||||||
exit 1;
|
exit 1;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue