mirror of https://github.com/CGAL/cgal
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:
parent
784c192699
commit
ed28e29e8c
|
|
@ -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" ProgramOutput.*.$1 > /dev/null ; then
|
||||
if $GREP -i -E '(^|[^a-zA-Z_,])warning' "CompilerOutput_$1" ProgramOutput.*.$1 > /dev/null ; then
|
||||
RESULT="w"
|
||||
else
|
||||
RESULT="y"
|
||||
|
|
|
|||
|
|
@ -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 ProgramOutput.*.$1
|
||||
if grep -i -E -q '(^|[^a-zA-Z_,])warning' CompilerOutput_$1 ProgramOutput.*.$1
|
||||
then
|
||||
RESULT="w"
|
||||
else
|
||||
|
|
|
|||
Loading…
Reference in New Issue