[NFC] Include tsan_interface.h in tests
authorVitaly Buka <vitalybuka@google.com>
Mon, 20 Mar 2023 22:56:38 +0000 (15:56 -0700)
committerVitaly Buka <vitalybuka@google.com>
Mon, 20 Mar 2023 23:01:20 +0000 (16:01 -0700)
compiler-rt/test/tsan/Linux/check_preinit.cpp
compiler-rt/test/tsan/cxa_guard_acquire.cpp
compiler-rt/test/tsan/default_options.cpp
compiler-rt/test/tsan/java_symbolization.cpp
compiler-rt/test/tsan/java_symbolization_legacy.cpp

index 8f5bf40..b5f63d3 100644 (file)
@@ -12,6 +12,7 @@
 // constructors of the binary which are called after constructors of shared
 // library.
 
+#include <sanitizer/tsan_interface.h>
 #include <stdio.h>
 
 #if BUILD_SO
index d483cd3..100a40b 100644 (file)
@@ -1,5 +1,6 @@
 // RUN: %clangxx_tsan -O1 %s -o %t && %run %t 2>&1 | FileCheck %s
 
+#include <sanitizer/tsan_interface.h>
 #include <stdio.h>
 
 namespace __tsan {
index 3b447e7..37af057 100644 (file)
@@ -1,5 +1,6 @@
 // RUN: %clang_tsan -O1 %s -o %t && %run %t 2>&1 | FileCheck %s
 #include <pthread.h>
+#include <sanitizer/tsan_interface.h>
 #include <stdio.h>
 
 #if (__APPLE__)
index e6a3ee8..2600d05 100644 (file)
@@ -1,6 +1,7 @@
 // RUN: %clangxx_tsan -O1 %s -o %t && %deflake %run %t | FileCheck %s
 #include "java.h"
 #include <memory.h>
+#include <sanitizer/tsan_interface.h>
 
 #if (__APPLE__)
 __attribute__((weak)) // Required for dyld macOS 12.0+
index bdf986a..502d59d 100644 (file)
@@ -1,6 +1,7 @@
 // RUN: %clangxx_tsan -O1 %s -o %t && %deflake %run %t | FileCheck %s
 #include "java.h"
 #include <memory.h>
+#include <sanitizer/tsan_interface.h>
 
 #if (__APPLE__)
 __attribute__((weak)) // Required for dyld macOS 12.0+