Commit 9d944712 authored by Leif Walsh's avatar Leif Walsh Committed by Yoni Fogel

refs #5368 suppress helgrind/drd in a nicer way


git-svn-id: file:///svn/toku/tokudb@48326 c7de825b-a66e-492c-adef-691d508d4ae1
parent 3b96b121
...@@ -49,6 +49,23 @@ list(APPEND CTEST_CUSTOM_MEMCHECK_IGNORE ...@@ -49,6 +49,23 @@ list(APPEND CTEST_CUSTOM_MEMCHECK_IGNORE
ydb/upgrade-test-4.tdb ydb/upgrade-test-4.tdb
) )
if (NOT @RUN_HELGRIND_TESTS@)
list(APPEND CTEST_CUSTOM_TESTS_IGNORE
ft/helgrind_test_partitioned_counter
ydb/helgrind_helgrind1.tdb
ydb/helgrind_helgrind2.tdb
ydb/helgrind_helgrind3.tdb
ydb/helgrind_test_groupcommit_count.tdb
)
endif ()
if (NOT @RUN_DRD_TESTS@)
list(APPEND CTEST_CUSTOM_TESTS_IGNORE
ydb/drd_test_groupcommit_count.tdb
ydb/drd_test_4015.tdb
)
endif ()
## osx's pthreads prefer writers, so this test will deadlock ## osx's pthreads prefer writers, so this test will deadlock
if (@CMAKE_SYSTEM_NAME@ STREQUAL Darwin) if (@CMAKE_SYSTEM_NAME@ STREQUAL Darwin)
list(APPEND CTEST_CUSTOM_MEMCHECK_IGNORE portability/test-pthread-rwlock-rwr) list(APPEND CTEST_CUSTOM_MEMCHECK_IGNORE portability/test-pthread-rwlock-rwr)
...@@ -92,6 +109,13 @@ foreach(test ${stress_tests}) ...@@ -92,6 +109,13 @@ foreach(test ${stress_tests})
ydb/drd_large_${test} ydb/drd_large_${test}
) )
endif() endif()
if (NOT @RUN_DRD_TESTS@)
list(APPEND CTEST_CUSTOM_TESTS_IGNORE
ydb/drd_tiny_${test}
ydb/drd_mid_${test}
ydb/drd_large_${test}
)
endif ()
endforeach(test) endforeach(test)
## upgrade stress tests are 5 minutes long, don't need to run them always ## upgrade stress tests are 5 minutes long, don't need to run them always
......
...@@ -10,13 +10,18 @@ endif () ...@@ -10,13 +10,18 @@ endif ()
## preprocessor definitions we want everywhere ## preprocessor definitions we want everywhere
add_c_defines( add_c_defines(
_SVID_SOURCE
_XOPEN_SOURCE=600
_FILE_OFFSET_BITS=64 _FILE_OFFSET_BITS=64
_LARGEFILE64_SOURCE _LARGEFILE64_SOURCE
__STDC_FORMAT_MACROS __STDC_FORMAT_MACROS
__STDC_LIMIT_MACROS __STDC_LIMIT_MACROS
__LONG_LONG_SUPPORTED
) )
if (NOT CMAKE_SYSTEM_NAME STREQUAL FreeBSD)
add_c_defines(
_SVID_SOURCE
_XOPEN_SOURCE=600
)
endif ()
## add TOKU_PTHREAD_DEBUG for debug builds ## add TOKU_PTHREAD_DEBUG for debug builds
set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS_DEBUG TOKU_PTHREAD_DEBUG) set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS_DEBUG TOKU_PTHREAD_DEBUG)
...@@ -92,6 +97,12 @@ if (NOT CMAKE_CXX_COMPILER_ID MATCHES Clang) ...@@ -92,6 +97,12 @@ if (NOT CMAKE_CXX_COMPILER_ID MATCHES Clang)
) )
endif () endif ()
if (CMAKE_SYSTEM_NAME STREQUAL FreeBSD)
set_cflags_if_supported(
-Wno-error=unused-but-set-variable
)
endif ()
## this hits with optimized builds somewhere in ftleaf_split, we don't ## this hits with optimized builds somewhere in ftleaf_split, we don't
## know why but we don't think it's a big deal ## know why but we don't think it's a big deal
set_ldflags_if_supported( set_ldflags_if_supported(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment