From 6abb3c40384bd507fe410680e0e0fefc4141f8a3 Mon Sep 17 00:00:00 2001 From: DarrenJiang13 Date: Sun, 30 Jul 2023 13:48:29 +0800 Subject: [PATCH] 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. --- tests/support/util.tcl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/support/util.tcl b/tests/support/util.tcl index 37d3c89a9..8941d1ae8 100644 --- a/tests/support/util.tcl +++ b/tests/support/util.tcl @@ -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 } }