Skip to content

Commit 307f4e0

Browse files
test: disable mt host functions tests for tsan builds
Related-To: NEO-14577 Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
1 parent 129249f commit 307f4e0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

shared/test/unit_test/mt_tests/host_function/host_function_tests_mt.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
#if defined(__has_feature)
2424
#if __has_feature(thread_sanitizer)
2525

26+
#define NEO_TSAN_ENABLED 1
27+
2628
extern "C" void __tsan_ignore_thread_begin();
2729
extern "C" void __tsan_ignore_thread_end();
2830

@@ -189,6 +191,10 @@ class HostFunctionMtTestP : public ::testing::TestWithParam<int>, public HostFun
189191
public:
190192
void SetUp() override {
191193

194+
#ifdef NEO_TSAN_ENABLED
195+
GTEST_SKIP();
196+
#endif
197+
192198
auto param = GetParam();
193199
this->testingMode = static_cast<int>(param);
194200
debugManager.flags.HostFunctionWorkMode.set(this->testingMode);

0 commit comments

Comments
 (0)