summaryrefslogtreecommitdiff
path: root/test/litest.c
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2019-04-12 10:00:12 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2019-05-07 04:48:00 +0000
commit32cd8ae0115efde717761d9009be44b6ec60d711 (patch)
tree25fa353057b889d0e9e4daeed28ae0c3ec62be03 /test/litest.c
parent2185a9d6bdab97ee3d9df06c0f7d1833183aa0ca (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.c5
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;