diff --git a/tests/sanity/style.test b/tests/sanity/style.test index f181c747e..29fe48aea 100755 --- a/tests/sanity/style.test +++ b/tests/sanity/style.test @@ -164,7 +164,7 @@ for dir in "$TOP/spot" "$TOP/bin" "$TOP/tests"; do $GREP '[ ]if ([^()]*([^()]*)[^()]*).*;' $tmp && diag 'if body should be on another line.' - $GREP '[ ]else.*;' $tmp && + $GREP -E '[ ]else.*;(|.*}.*)$' $tmp && diag 'else body should be on another line.' $GREP '[ ]while(' $tmp &&