Commit 8c1a2bde authored by Alexei Filippov's avatar Alexei Filippov Committed by Commit Bot

[heap profiler] enable TSAN for the test

Change-Id: Ieeb0e3f19358e5c204cbcb10d036010536d5da26
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1615596Reviewed-by: default avatarVlad Tsyrklevich <vtsyrklevich@chromium.org>
Commit-Queue: Alexei Filippov <alph@chromium.org>
Cr-Commit-Position: refs/heads/master@{#660680}
parent b60ba7f2
......@@ -12,7 +12,6 @@
#include "base/allocator/allocator_shim.h"
#include "base/debug/alias.h"
#include "base/threading/simple_thread.h"
#include "build/build_config.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace base {
......@@ -139,12 +138,7 @@ class WriterThread : public SimpleThread {
std::atomic_bool* cancel_;
};
#if defined(THREAD_SANITIZER)
#define DISABLE_ON_TSAN(test_name) DISABLED_##test_name
#else
#define DISABLE_ON_TSAN(test_name) test_name
#endif // defined(THREAD_SANITIZER)
TEST_F(LockFreeAddressHashSetTest, DISABLE_ON_TSAN(ConcurrentAccess)) {
TEST_F(LockFreeAddressHashSetTest, ConcurrentAccess) {
// The purpose of this test is to make sure adding/removing keys concurrently
// does not disrupt the state of other keys.
LockFreeAddressHashSet set(16);
......
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