tests/trace: Print log on error

This commit is contained in:
Clemens Lang
2026-04-12 03:50:42 +02:00
committed by Clemens Lang
parent 0bbe4ad0ee
commit 51e37f5506
+4 -1
View File
@@ -33,7 +33,10 @@ proc test_trace {} {
exec -ignorestderr touch ../tracetesttmp/rename-trace
exec -ignorestderr file mkdir ../tracetesttmp/rmdir-trace
port_trace $path
set result [port_trace $path]
if {$result} {
puts [exec cat $path/$output_file 2>@1]
}
set err "error*"
set line [get_line $path/$output_file $err]