From 32cd8ae0115efde717761d9009be44b6ec60d711 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Fri, 12 Apr 2019 10:00:12 +1000 Subject: [PATCH] test: skip the backtrace under valgrind gstack can't resolve the backtrace under valgrind anyway, so let's just skip it altogether. Signed-off-by: Peter Hutterer --- test/litest.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/litest.c b/test/litest.c index 07570846..f2c1ad49 100644 --- a/test/litest.c +++ b/test/litest.c @@ -118,6 +118,11 @@ litest_backtrace(void) pid_t parent, child; int pipefd[2]; + if (RUNNING_ON_VALGRIND) { + litest_log(" Using valgrind, omitting backtrace\n"); + return; + } + if (pipe(pipefd) == -1) return;