From 82b804628117cf6e9ff758d9e7918be170b3ada8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Esser?= Date: Tue, 7 Jan 2025 15:00:25 +0100 Subject: [PATCH] test/explicit-bzero: Skip test if compiling with ASAN. --- test/explicit-bzero.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/test/explicit-bzero.c b/test/explicit-bzero.c index 63634e98..16a175b1 100644 --- a/test/explicit-bzero.c +++ b/test/explicit-bzero.c @@ -40,8 +40,9 @@ #include "crypt-port.h" -#ifndef USE_SWAPCONTEXT -/* We can't do this test if we don't have the ucontext API. */ +#if !defined USE_SWAPCONTEXT || defined XCRYPT_USE_ASAN +/* We can't do this test if we don't have the ucontext API. + Also ASAN may have some problems with using swapcontext(). */ int main(void) { return 77; @@ -330,4 +331,4 @@ main (void) return test_status; } -#endif /* have ucontext.h */ +#endif /* have ucontext.h || defined XCRYPT_USE_ASAN */