Home | History | Annotate | 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 <vector>
     21 #include <string>
     22 #include <map>
     23 
     24 #if ASAN_USE_DEJAGNU_GTEST
     25 # include "dejagnu-gtest.h"
     26 #else
     27 # include "gtest/gtest.h"
     28 #endif
     29 
     30 using std::string;
     31 using std::vector;
     32 using std::map;
     33 
     34 #ifndef ASAN_UAR
     35 # error "please define ASAN_UAR"
     36 #endif
     37 
     38 #ifndef ASAN_HAS_EXCEPTIONS
     39 # error "please define ASAN_HAS_EXCEPTIONS"
     40 #endif
     41 
     42 #ifndef ASAN_HAS_BLACKLIST
     43 # error "please define ASAN_HAS_BLACKLIST"
     44 #endif
     45 
     46 #ifndef ASAN_NEEDS_SEGV
     47 # error "please define ASAN_NEEDS_SEGV"
     48 #endif
     49 
     50 #ifndef ASAN_AVOID_EXPENSIVE_TESTS
     51 # define ASAN_AVOID_EXPENSIVE_TESTS 0
     52 #endif
     53 
     54 #define ASAN_PCRE_DOTALL ""
     55 
     56 #endif  // ASAN_TEST_CONFIG_H
     57