Don't run downgrade tests for valgrind. Closes #6322

This commit is contained in:
Andrew Noyes 2022-02-03 16:52:41 -08:00
parent 4bf14e6c47
commit 84d26c7c13
1 changed files with 4 additions and 0 deletions

View File

@ -95,6 +95,10 @@ function(add_fdb_test)
if((NOT test_name MATCHES "${TEST_INCLUDE}") OR (test_name MATCHES "${TEST_EXCLUDE}"))
return()
endif()
# We shouldn't run downgrade tests under valgrind: https://github.com/apple/foundationdb/issues/6322
if(USE_VALGRIND AND ${test_name} MATCHES .*to_.*)
return()
endif()
math(EXPR test_idx "${CURRENT_TEST_INDEX} + ${NUM_TEST_FILES}")
set(CURRENT_TEST_INDEX "${test_idx}" PARENT_SCOPE)
# set(<var> <value> PARENT_SCOPE) doesn't set the