* src/sanity/includes.test: Work around a bug in Bison 2.6.

This commit is contained in:
Alexandre Duret-Lutz 2012-10-02 18:20:53 +02:00
parent c05ec36dd0
commit fb38fe56aa

View file

@ -16,6 +16,10 @@ for file in `find "$INCDIR" \( -name "${1-*}.hh" \
b=`echo "$file" | tr '[/.a-z]' '[__A-Z]'`
if grep "[ ]*#.*def.* SPOT_$b\$" "$INCDIR/$file" >/dev/null; then
:
elif grep 'GNU Bison 2\.6' "$INCDIR/$file" >/dev/null; then
# Bison 2.6, 2.6.1, 2.6.2 have a bug where position.hh
# include <iosfwd> instead of <iostream>.
continue
elif grep 'GNU Bison' "$INCDIR/$file" >/dev/null; then
:
else