Skip to content

Commit

Permalink
test/explicit-bzero: Skip test if compiling with ASAN.
Browse files Browse the repository at this point in the history
  • Loading branch information
besser82 committed Jan 12, 2025
1 parent 59d7964 commit 82b8046
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test/explicit-bzero.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -330,4 +331,4 @@ main (void)
return test_status;
}

#endif /* have ucontext.h */
#endif /* have ucontext.h || defined XCRYPT_USE_ASAN */

0 comments on commit 82b8046

Please sign in to comment.