Home GnuPG

tests: allow running 'make check' with ASAN

Description

tests: allow running 'make check' with ASAN

* tests/t-secmem.c (main): Skip test if environment variable
GCRYPT_IN_ASAN_TEST is defined.
* tests/t-sexp.c (main): Do not initialize secmem if environment
variable GCRYPT_IN_ASAN_TEST is defined.

ASAN and mlock are incompatible, so add GCRYPT_IN_ASAN_TEST
environment variant for skipping tests failing as result.
This allows easier automation of ASAN checks.

  • Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>

Details

Provenance
jukiviliAuthored on Jan 31 2021, 4:28 PM
Parents
rC8716e4b2ada2: global: make sure that bulk config string is null-terminated
Branches
Unknown
Tags
Unknown