diff options
author | John Levon <john.levon@nutanix.com> | 2022-03-24 17:03:43 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-24 17:03:43 +0000 |
commit | 030d2f6e7978b8ca7577b81d4f48e2771bcd8f47 (patch) | |
tree | c339dc5f7cf78a9414fb15b5ee72c8f6eebef72c | |
parent | d6f239d2b1afb61f10e016d87b79690cd6ec37e7 (diff) | |
download | libvfio-user-030d2f6e7978b8ca7577b81d4f48e2771bcd8f47.zip libvfio-user-030d2f6e7978b8ca7577b81d4f48e2771bcd8f47.tar.gz libvfio-user-030d2f6e7978b8ca7577b81d4f48e2771bcd8f47.tar.bz2 |
use --exit-on-first-error=yes with valgrind (#655)
Catch valgrind issues earlier with less noise.
Signed-off-by: John Levon <john.levon@nutanix.com>
Reviewed-by: Thanos Makatos <thanos.makatos@nutanix.com>
-rw-r--r-- | Makefile | 1 | ||||
-rw-r--r-- | test/CMakeLists.txt | 2 |
2 files changed, 2 insertions, 1 deletions
@@ -95,6 +95,7 @@ PYTESTVALGRIND = \ --errors-for-leak-kinds=definite \ --show-leak-kinds=definite \ --leak-check=full \ + --exit-on-first-error=yes \ --error-exitcode=1 \ $(PYTESTCMD) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 2fd2e84..7f94212 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -30,7 +30,7 @@ if (WITH_ASAN EQUAL 1) unset(valgrind) else() set(valgrind_path "/usr/bin/valgrind") - set(valgrind_args "--error-exitcode=1 --leak-check=full --quiet") + set(valgrind_args "--error-exitcode=1 --exit-on-first-error=yes --leak-check=full --quiet") set(valgrind_args "${valgrind_args} --show-leak-kinds=all --track-origins=yes") set(valgrind_args "${valgrind_args} --suppressions=${CMAKE_CURRENT_SOURCE_DIR}/valgrind.supp") separate_arguments(valgrind_args) |