[NFC] Include tsan_interface.h in tests

This commit is contained in:
Vitaly Buka 2023-03-20 15:56:38 -07:00
parent 33789125ca
commit e520800eda
5 changed files with 5 additions and 0 deletions

View 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

View 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 {

View 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__)

View 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+

View 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+