Previous commit was incomplete

("New attempt to catch runtime warnings. One need to grep in
ProgramOutput.*.* instead of ErrorOutput_*.")

Fix the regular expression. I hope all platforms will have a grep knowing
that syntax.
This commit is contained in:
Laurent Rineau 2008-09-08 08:59:30 +00:00
parent 784c192699
commit ed28e29e8c
2 changed files with 2 additions and 2 deletions

View File

@ -56,7 +56,7 @@ print_testresult()
# string "warning" preceded with a letter that is not a letter or '_' or ',' # string "warning" preceded with a letter that is not a letter or '_' or ','
# That avoids some false positives such as # That avoids some false positives such as
# '-read_only_relocs,warning' or '-D_CRT_SECURE_NO_WARNINGS' # '-read_only_relocs,warning' or '-D_CRT_SECURE_NO_WARNINGS'
if $GREP -i -E '[^a-zA-Z_,]warning' "CompilerOutput_$1" ProgramOutput.*.$1 > /dev/null ; then if $GREP -i -E '(^|[^a-zA-Z_,])warning' "CompilerOutput_$1" ProgramOutput.*.$1 > /dev/null ; then
RESULT="w" RESULT="w"
else else
RESULT="y" RESULT="y"

View File

@ -44,7 +44,7 @@ print_testresult()
# string "warning" preceded with a letter that is not a letter or '_' or ',' # string "warning" preceded with a letter that is not a letter or '_' or ','
# That avoids some false positives such as # That avoids some false positives such as
# '-read_only_relocs,warning' or '-D_CRT_SECURE_NO_WARNINGS' # '-read_only_relocs,warning' or '-D_CRT_SECURE_NO_WARNINGS'
if grep -i -E -q '[^a-zA-Z_,]warning' CompilerOutput_$1 ProgramOutput.*.$1 if grep -i -E -q '(^|[^a-zA-Z_,])warning' CompilerOutput_$1 ProgramOutput.*.$1
then then
RESULT="w" RESULT="w"
else else