Home | History | Annotate | Line # | Download | only in tests
      1 //===-- asan_test_config.h --------------------------------------*- C++ -*-===//
      2 //
      3 //                     The LLVM Compiler Infrastructure
      4 //
      5 // This file is distributed under the University of Illinois Open Source
      6 // License. See LICENSE.TXT for details.
      7 //
      8 //===----------------------------------------------------------------------===//
      9 //
     10 // This file is a part of AddressSanitizer, an address sanity checker.
     11 //
     12 //===----------------------------------------------------------------------===//
     13 #if !defined(INCLUDED_FROM_ASAN_TEST_UTILS_H)
     14 # error "This file should be included into asan_test_utils.h only"
     15 #endif
     16 
     17 #ifndef ASAN_TEST_CONFIG_H
     18 #define ASAN_TEST_CONFIG_H
     19 
     20 #include <string>
     21 
     22 using std::string;
     23 
     24 #ifndef ASAN_UAR
     25 # error "please define ASAN_UAR"
     26 #endif
     27 
     28 #ifndef ASAN_HAS_EXCEPTIONS
     29 # error "please define ASAN_HAS_EXCEPTIONS"
     30 #endif
     31 
     32 #ifndef ASAN_HAS_BLACKLIST
     33 # error "please define ASAN_HAS_BLACKLIST"
     34 #endif
     35 
     36 #ifndef ASAN_NEEDS_SEGV
     37 # if defined(_WIN32)
     38 #  define ASAN_NEEDS_SEGV 0
     39 # else
     40 #  define ASAN_NEEDS_SEGV 1
     41 # endif
     42 #endif
     43 
     44 #ifndef ASAN_AVOID_EXPENSIVE_TESTS
     45 # define ASAN_AVOID_EXPENSIVE_TESTS 0
     46 #endif
     47 
     48 #define ASAN_PCRE_DOTALL ""
     49 
     50 #endif  // ASAN_TEST_CONFIG_H
     51