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 <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2019-04-12 10:00:12 +10:00
parent 2185a9d6bd
commit 32cd8ae011

View file

@ -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;