diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2019-04-12 10:00:12 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2019-05-07 04:48:00 +0000 |
commit | 32cd8ae0115efde717761d9009be44b6ec60d711 (patch) | |
tree | 25fa353057b889d0e9e4daeed28ae0c3ec62be03 /test/litest.c | |
parent | 2185a9d6bdab97ee3d9df06c0f7d1833183aa0ca (diff) |
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>
Diffstat (limited to 'test/litest.c')
-rw-r--r-- | test/litest.c | 5 |
1 files changed, 5 insertions, 0 deletions
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; |