Disable BasicLockEscalation if cannot determine whether TSAN is enabled (#7814)
Summary: BasicLockEscalation will cause false-positive warnings under TSAN (this is a known issue in TSAN, see details in https://gist.github.com/spetrunia/77274cf2d5848e0a7e090d622695ed4e), skip this test if TSAN is enabled, or if we are not sure whether TSAN is enabled. Pull Request resolved: https://github.com/facebook/rocksdb/pull/7814 Test Plan: watch the tsan contrun test to pass. Reviewed By: zhichao-cao Differential Revision: D25708094 Pulled By: cheng-chang fbshipit-source-id: 4fc813ff373301d033d086154cc7bb60a5e95889
This commit is contained in:
parent
44ebc24dca
commit
736c6dc59f
@ -220,6 +220,8 @@ TEST_F(RangeLockingTest, MultipleTrxLockStatusData) {
|
|||||||
#if __has_feature(thread_sanitizer)
|
#if __has_feature(thread_sanitizer)
|
||||||
#define SKIP_LOCK_ESCALATION_TEST 1
|
#define SKIP_LOCK_ESCALATION_TEST 1
|
||||||
#endif
|
#endif
|
||||||
|
#else
|
||||||
|
#define SKIP_LOCK_ESCALATION_TEST 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef SKIP_LOCK_ESCALATION_TEST
|
#ifndef SKIP_LOCK_ESCALATION_TEST
|
||||||
|
Loading…
x
Reference in New Issue
Block a user