2016-04-16 15:03:45 +08:00
|
|
|
@LIT_SITE_CFG_IN_HEADER@
|
2012-09-18 15:23:54 +08:00
|
|
|
|
2016-02-03 02:43:53 +08:00
|
|
|
config.name_suffix = "@TSAN_TEST_CONFIG_SUFFIX@"
|
2017-07-10 23:00:55 +08:00
|
|
|
config.tsan_lit_source_dir = "@TSAN_LIT_SOURCE_DIR@"
|
2014-05-14 06:30:16 +08:00
|
|
|
config.has_libcxx = @TSAN_HAS_LIBCXX@
|
2018-06-20 21:33:42 +08:00
|
|
|
config.apple_platform = "@TSAN_TEST_APPLE_PLATFORM@"
|
2020-02-15 03:35:06 +08:00
|
|
|
config.apple_platform_min_deployment_target_flag = "@TSAN_TEST_MIN_DEPLOYMENT_TARGET_FLAG@"
|
2016-02-03 02:43:53 +08:00
|
|
|
config.target_cflags = "@TSAN_TEST_TARGET_CFLAGS@"
|
2016-02-23 09:34:17 +08:00
|
|
|
config.target_arch = "@TSAN_TEST_TARGET_ARCH@"
|
Title: [TSAN] Parameterize the hard-coded threshold of deflake in tsan test
Summary:
A number of testcases in TSAN are designed to deal with intermittent problems
not exist in all executions of the tested program. A script called deflake.bash
runs the executable up to 10 times to deal with the intermittent nature of the tests.
The purpose of this patch is to parameterize the hard-coded threshold above via
--cmake_variables=-DTSAN_TEST_DEFLAKE_THRESHOLD=SomeIntegerValue
When this cmake var is not set, the default value of 10 will be used.
Reviewer: dvyukov (Dmitry Vyukov), eugenis (Evgenii Stepanov), rnk (Reid Kleckner), hubert.reinterpretcast (Hubert Tong), vitalybuka (Vitaly Buka)
Reviewed By: vitalybuka (Vitaly Buka)
Subscribers: mgorny (Michal Gorny), jfb (JF Bastien), steven.zhang (qshanz), llvm-commits (Mailing List llvm-commits), Sanitizers
Tag: LLVM, Sanitizers
Differential Revision: https://reviews.llvm.org/D73707
2020-02-12 23:51:57 +08:00
|
|
|
config.deflake_threshold = "@TSAN_TEST_DEFLAKE_THRESHOLD@"
|
2014-05-14 06:30:16 +08:00
|
|
|
|
2013-06-06 21:28:37 +08:00
|
|
|
# Load common config for all compiler-rt lit tests.
|
2014-02-14 19:00:07 +08:00
|
|
|
lit_config.load_config(config, "@COMPILER_RT_BINARY_DIR@/test/lit.common.configured")
|
2012-09-18 15:23:54 +08:00
|
|
|
|
2013-06-06 21:28:37 +08:00
|
|
|
# Load tool-specific config that would do the real work.
|
2019-06-28 04:56:04 +08:00
|
|
|
lit_config.load_config(config, "@CMAKE_CURRENT_SOURCE_DIR@/lit.cfg.py")
|