change log match to line match in tcl sanitizer_errors_from_file. (#12446)

In the tcl foreach loop, the function should compare line rather than the whole file.
This commit is contained in:
DarrenJiang13 2023-07-30 13:48:29 +08:00 committed by GitHub
parent 42985b00ea
commit 6abb3c4038
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -62,8 +62,8 @@ proc sanitizer_errors_from_file {filename} {
}
# GCC UBSAN output does not contain 'Sanitizer' but 'runtime error'.
if {[string match {*runtime error*} $log] ||
[string match {*Sanitizer*} $log]} {
if {[string match {*runtime error*} $line] ||
[string match {*Sanitizer*} $line]} {
return $log
}
}