Skip to content

Commit 10f383d

Browse files
committed
Skip tests incompatible with valgrind
Ref: #338 Signed-off-by: Lukasz Dorau <lukasz.dorau@intel.com>
1 parent c6c098d commit 10f383d

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

test/test_valgrind.sh

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,18 @@ for test in $(ls -1 ./umf_test-*); do
7979
SUP="${WORKSPACE}/test/supp/${test}.supp"
8080
OPT_SUP=""
8181
[ -f ${SUP} ] && OPT_SUP="--suppressions=${SUP}"
82-
HWLOC_CPUID_PATH=./cpuid valgrind $OPTION $OPT_SUP --gen-suppressions=all $test >$LOG 2>&1 || echo -n "(valgrind failed) "
82+
83+
# skip tests incompatible with valgrind
84+
case $test in
85+
./umf_test-memspace_host_all)
86+
FILTER='--gtest_filter="-*allocsSpreadAcrossAllNumaNodes"'
87+
;;
88+
./umf_test-provider_os_memory_config)
89+
FILTER='--gtest_filter="-*protection_flag_none:*protection_flag_read:*providerConfigTestNumaMode*"'
90+
;;
91+
esac
92+
93+
HWLOC_CPUID_PATH=./cpuid valgrind $OPTION $OPT_SUP --gen-suppressions=all $test $FILTER >$LOG 2>&1 || echo -n "(valgrind failed) "
8394
# grep for "ERROR SUMMARY" with errors (there can be many lines with "ERROR SUMMARY")
8495
grep -e "ERROR SUMMARY:" $LOG | grep -v -e "ERROR SUMMARY: 0 errors from 0 contexts" > $ERR || true
8596
if [ $(cat $ERR | wc -l) -eq 0 ]; then

0 commit comments

Comments
 (0)