diff options
author | Matthias Gierlings <[email protected]> | 2018-04-06 20:20:35 +0200 |
---|---|---|
committer | Matthias Gierlings <[email protected]> | 2018-04-06 20:25:45 +0200 |
commit | 4476c07bae00dc2cec5183878d81b3e53ff3b97e (patch) | |
tree | 2ab30848e3a561f5999a196187aebdcbafae3faf /src/build-data | |
parent | 4292f41101bb86d528252d8395ffb93eb9fa3528 (diff) |
Make tests pass by default in UBSAN mode
- Adds macros to check if botan was compiled with a certain sanitizers.
- Automatically excludes the tests that are intended to provoke undefined
behaviour from the test bench, when botan is compiled with UBSAN.
- Changes option `--avoid-undefined` to `--no-avoid-undefined` so the
failing tests can be explicitly activated when needed.
Diffstat (limited to 'src/build-data')
-rw-r--r-- | src/build-data/buildh.in | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/build-data/buildh.in b/src/build-data/buildh.in index d42e85ac4..807b6f479 100644 --- a/src/build-data/buildh.in +++ b/src/build-data/buildh.in @@ -52,6 +52,10 @@ #define BOTAN_BUILD_COMPILER_IS_%{cc_macro} +%{for sanitizer_types} +#define BOTAN_HAS_SANITIZER_%{i|upper} +%{endfor} + #define BOTAN_TARGET_ARCH_IS_%{arch|upper} %{if endian} #define BOTAN_TARGET_CPU_IS_%{endian|upper}_ENDIAN |