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 using std::string; 25 using std::vector; 26 using std::map; 27 28 #ifndef ASAN_UAR 29 # error "please define ASAN_UAR" 30 #endif 31 32 #ifndef ASAN_HAS_EXCEPTIONS 33 # error "please define ASAN_HAS_EXCEPTIONS" 34 #endif 35 36 #ifndef ASAN_HAS_BLACKLIST 37 # error "please define ASAN_HAS_BLACKLIST" 38 #endif 39 40 #ifndef ASAN_NEEDS_SEGV 41 # if defined(_WIN32) 42 # define ASAN_NEEDS_SEGV 0 43 # else 44 # define ASAN_NEEDS_SEGV 1 45 # endif 46 #endif 47 48 #ifndef ASAN_AVOID_EXPENSIVE_TESTS 49 # define ASAN_AVOID_EXPENSIVE_TESTS 0 50 #endif 51 52 #define ASAN_PCRE_DOTALL "" 53 54 #endif // ASAN_TEST_CONFIG_H 55