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-10 15:05:44 +0200
commit57fcb3875f003f310f61064fb2f506fd470a8bdd (patch)
treec056582d785f69b4953a830f24b8d6a26a86128c
parent1f8d9b70a2c3cd502a497208b3b40f6be1c11494 (diff)
default_target_compile: Add more traces to log filelinaro-stable-on-1.6.3
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: I3f60fb5d741cad21eca7506ccfb661c44d389c61
-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]"