aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnstein Ressem <aressem@vespa.ai>2024-06-05 10:50:33 +0200
committerArnstein Ressem <aressem@vespa.ai>2024-06-05 10:50:33 +0200
commitaaed1910925ad3d21fb398be95cd803f81b3b669 (patch)
tree58fa98a0f272cd6167d4c285b2376289567397bf
parentced7d915ea2644b0fd5eab3da5a9cdaa05d33622 (diff)
Try to run ctests with nice and use valgrind fair scheduling.
-rwxr-xr-x.buildkite/cpp-test.sh2
-rw-r--r--build_settings.cmake2
2 files changed, 2 insertions, 2 deletions
diff --git a/.buildkite/cpp-test.sh b/.buildkite/cpp-test.sh
index dafc754742d..a40140dcd1e 100755
--- a/.buildkite/cpp-test.sh
+++ b/.buildkite/cpp-test.sh
@@ -2,4 +2,4 @@
set -euo pipefail
-ctest3 --output-junit "$LOG_DIR/vespa-cpptest-results.xml" --output-on-failure -j "$NUM_CPU_LIMIT"
+nice ctest3 --output-junit "$LOG_DIR/vespa-cpptest-results.xml" --output-on-failure -j "$NUM_CPU_LIMIT"
diff --git a/build_settings.cmake b/build_settings.cmake
index 6f0daa77da1..596192567db 100644
--- a/build_settings.cmake
+++ b/build_settings.cmake
@@ -202,7 +202,7 @@ endif()
find_program(VALGRIND_EXECUTABLE valgrind)
if(VALGRIND_EXECUTABLE)
set(VALGRIND_SUPPRESSIONS_FILE "${PROJECT_SOURCE_DIR}/valgrind-suppressions.txt")
- set(VALGRIND_OPTIONS "--leak-check=yes --error-exitcode=1 --run-libc-freeres=no --track-origins=yes --suppressions=${VALGRIND_SUPPRESSIONS_FILE}")
+ set(VALGRIND_OPTIONS "--leak-check=yes --fair-sched=yes --error-exitcode=1 --run-libc-freeres=no --track-origins=yes --suppressions=${VALGRIND_SUPPRESSIONS_FILE}")
set(VALGRIND_COMMAND "${VALGRIND_EXECUTABLE} ${VALGRIND_OPTIONS}")
endif()
# Automatically set sanitizer suppressions file and arguments for unit tests