From 5242e8eec59b0cb91437fad95289dcc8b5dc61a7 Mon Sep 17 00:00:00 2001 From: David Steele Date: Wed, 14 Feb 2018 09:18:27 -0500 Subject: [PATCH] Generate suppressions when running Valgrind. This makes it easier to suppress errors that are only occurring on Travis. --- test/lib/pgBackRestTest/Common/JobTest.pm | 4 ++-- test/src/valgrind.suppress | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/test/lib/pgBackRestTest/Common/JobTest.pm b/test/lib/pgBackRestTest/Common/JobTest.pm index 43c4f7569..43eda1dce 100644 --- a/test/lib/pgBackRestTest/Common/JobTest.pm +++ b/test/lib/pgBackRestTest/Common/JobTest.pm @@ -202,8 +202,8 @@ sub run { $strCommand = 'docker exec -i -u ' . TEST_USER . " ${strImage}" . - " valgrind -q --suppressions=$self->{strBackRestBase}/test/src/valgrind.suppress --leak-check=full" . - " --leak-resolution=high" . + " valgrind -q --gen-suppressions=all --suppressions=$self->{strBackRestBase}/test/src/valgrind.suppress" . + " --leak-check=full --leak-resolution=high" . " $self->{strGCovPath}/test"; } else diff --git a/test/src/valgrind.suppress b/test/src/valgrind.suppress index efc9b839b..ab09f594c 100644 --- a/test/src/valgrind.suppress +++ b/test/src/valgrind.suppress @@ -1,6 +1,6 @@ { - ignore_libcrypto_leaks - Memcheck:Leak - ... - obj:*/libcrypto.so.* + ignore_libcrypto_leaks + Memcheck:Leak + ... + obj:*/libcrypto.so* }