aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohn Levon <john.levon@nutanix.com>2022-03-24 17:03:43 +0000
committerGitHub <noreply@github.com>2022-03-24 17:03:43 +0000
commit030d2f6e7978b8ca7577b81d4f48e2771bcd8f47 (patch)
treec339dc5f7cf78a9414fb15b5ee72c8f6eebef72c /test
parentd6f239d2b1afb61f10e016d87b79690cd6ec37e7 (diff)
downloadlibvfio-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>
Diffstat (limited to 'test')
-rw-r--r--test/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
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)