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;