New attempt to catch runtime warnings. One need to grep in

ProgramOutput.*.* instead of ErrorOutput_*.
This commit is contained in:
Laurent Rineau 2008-09-08 08:43:34 +00:00
parent 71dca77d50
commit 784c192699
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 ','
# That avoids some false positives such as
# '-read_only_relocs,warning' or '-D_CRT_SECURE_NO_WARNINGS'
if $GREP -i -E '[^a-zA-Z_,]warning' "CompilerOutput_$1" "ErrorOutput_$1" > /dev/null ; then
if $GREP -i -E '[^a-zA-Z_,]warning' "CompilerOutput_$1" ProgramOutput.*.$1 > /dev/null ; then
RESULT="w"
else
RESULT="y"

View File

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