From 00c97979d96929619d94acd7f5edd083fa337ab6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20S=C3=B6derqvist?= Date: Sun, 6 Oct 2024 19:40:36 +0200 Subject: [PATCH] Make ./runtest --dump-logs dump logs on crash (#1117) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Until now, this flag only dumped logs on a failed assert in test case. It is useful that this flag dumps logs on a crash as well. Signed-off-by: Viktor Söderqvist --- tests/support/server.tcl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/support/server.tcl b/tests/support/server.tcl index e8f9f8fb4..725733904 100644 --- a/tests/support/server.tcl +++ b/tests/support/server.tcl @@ -697,8 +697,8 @@ proc start_server {options {code undefined}} { dict set srv "skipleaks" 1 kill_server $srv - if {$::dump_logs && $assertion} { - # if we caught an assertion ($::num_failed isn't incremented yet) + if {$::dump_logs} { + # crash or assertion ($::num_failed isn't incremented yet) # this happens when the test spawns a server and not the other way around dump_server_log $srv } else {