From addd3b52929395d4efdc40cfd40902888da8fdbe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Arne=20Vestb=C3=B8?= Date: Fri, 23 Oct 2020 12:26:09 +0200 Subject: [PATCH] testlib: Spit out crash backtraces to stderr Ensures that the backtrace is interleaved with the header and footer that we print ourselves. Change-Id: I728f4a05be31e345687cbb5fefe49f76dbe8ae36 Reviewed-by: Edward Welbourne --- src/testlib/qtestcase.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/testlib/qtestcase.cpp b/src/testlib/qtestcase.cpp index ac8eeb6c27..992149ff20 100644 --- a/src/testlib/qtestcase.cpp +++ b/src/testlib/qtestcase.cpp @@ -220,7 +220,7 @@ static void stackTrace() #endif #ifdef Q_OS_LINUX char cmd[512]; - qsnprintf(cmd, 512, "gdb --pid %d 2>/dev/null <&2 2>/dev/null </dev/null <&2 2>/dev/null <