From 030d2f6e7978b8ca7577b81d4f48e2771bcd8f47 Mon Sep 17 00:00:00 2001 From: John Levon Date: Thu, 24 Mar 2022 17:03:43 +0000 Subject: use --exit-on-first-error=yes with valgrind (#655) Catch valgrind issues earlier with less noise. Signed-off-by: John Levon Reviewed-by: Thanos Makatos --- test/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') 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) -- cgit v1.1