aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristophe Lyon <christophe.lyon@linaro.org>2023-05-04 17:08:15 +0000
committerThiago Jung Bauermann <thiago.bauermann@linaro.org>2023-05-11 00:41:10 +0200
commite35e23954791251cf332d15df1958459f94ae584 (patch)
treec056582d785f69b4953a830f24b8d6a26a86128c
parent695e5f905e9e68b65fc83d1daefa17e02e2ec6bf (diff)
default_target_compile: Add more traces to log filelinaro-local/stable
In an attempt at debugging random failures in the GCC testsuite, add more debug output to the log file. We have noticed several cases where "compiler exited with status 1" is appended to the compiler error messages without \n between the two strings, apparently leading to errors when dejagnu tries to match the compiler output. It looks as if $comp_output is missing a final \n for some reason. Change-Id: I4785cdd1b5e52871dd01e037264923f9650668f1
-rw-r--r--lib/target.exp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/target.exp b/lib/target.exp
index 36ae639..7dca4ee 100644
--- a/lib/target.exp
+++ b/lib/target.exp
@@ -790,6 +790,9 @@ proc default_target_compile {source destfile type options} {
}
if { [lindex $status 1] ne "" } {
verbose "output is:\n[lindex $status 1]" 2
+ # FIXME: To help debug random issues
+ verbose -log "output is:\n[lindex $status 1]"
+ verbose -log "comp_output (pruned) is:\n${comp_output}"
}
if { [lindex $status 0] != 0 && $comp_output eq "" } {
set comp_output "exit status is [lindex $status 0]"