[compiler-rt] e520800 - [NFC] Include tsan_interface.h in tests

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 20 16:04:41 PDT 2023


Author: Vitaly Buka
Date: 2023-03-20T16:01:20-07:00
New Revision: e520800eda3d9810be6c78d8056c7e384d0ace70

URL: https://github.com/llvm/llvm-project/commit/e520800eda3d9810be6c78d8056c7e384d0ace70
DIFF: https://github.com/llvm/llvm-project/commit/e520800eda3d9810be6c78d8056c7e384d0ace70.diff

LOG: [NFC] Include tsan_interface.h in tests

Added: 
    

Modified: 
    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

Removed: 
    


################################################################################
diff  --git a/compiler-rt/test/tsan/Linux/check_preinit.cpp b/compiler-rt/test/tsan/Linux/check_preinit.cpp
index 8f5bf40337606..b5f63d3d4b9e3 100644
--- a/compiler-rt/test/tsan/Linux/check_preinit.cpp
+++ b/compiler-rt/test/tsan/Linux/check_preinit.cpp
@@ -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

diff  --git a/compiler-rt/test/tsan/cxa_guard_acquire.cpp b/compiler-rt/test/tsan/cxa_guard_acquire.cpp
index d483cd37f328f..100a40b281410 100644
--- a/compiler-rt/test/tsan/cxa_guard_acquire.cpp
+++ b/compiler-rt/test/tsan/cxa_guard_acquire.cpp
@@ -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 {

diff  --git a/compiler-rt/test/tsan/default_options.cpp b/compiler-rt/test/tsan/default_options.cpp
index 3b447e734f23f..37af05739de15 100644
--- a/compiler-rt/test/tsan/default_options.cpp
+++ b/compiler-rt/test/tsan/default_options.cpp
@@ -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__)

diff  --git a/compiler-rt/test/tsan/java_symbolization.cpp b/compiler-rt/test/tsan/java_symbolization.cpp
index e6a3ee8ac1536..2600d05a0c84c 100644
--- a/compiler-rt/test/tsan/java_symbolization.cpp
+++ b/compiler-rt/test/tsan/java_symbolization.cpp
@@ -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+

diff  --git a/compiler-rt/test/tsan/java_symbolization_legacy.cpp b/compiler-rt/test/tsan/java_symbolization_legacy.cpp
index bdf986acfc1c4..502d59def0891 100644
--- a/compiler-rt/test/tsan/java_symbolization_legacy.cpp
+++ b/compiler-rt/test/tsan/java_symbolization_legacy.cpp
@@ -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+


        


More information about the llvm-commits mailing list