* src/sanity/style.test: Strip all strings before checking the

file, so that strings are not checked for our C++ style.
Reported by Denis (with a chainsaw).
This commit is contained in:
Alexandre Duret-Lutz 2005-02-07 15:56:35 +00:00
parent b10727f139
commit 5cceccca06
2 changed files with 7 additions and 1 deletions

View file

@ -38,7 +38,7 @@ for dir in "${INCDIR-..}" "${INCDIR-..}"/../iface; do
fail=false
sed 's,[ ]*//.*,,' < $file > $tmp
sed 's,[ ]*//.*,,;s,"[^"]*","",g' < $file > $tmp
grep '[ ]$' $tmp &&
diag 'Trailing whitespace.'