Skip to content

Commit 3e12b51

Browse files
committed
tests/sodium_utils3: skip SIGSEGV check when tsan is enabled
Fixes #1450
1 parent f59e862 commit 3e12b51

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/default/sodium_utils3.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
#ifdef __SANITIZE_ADDRESS__
1717
# warning The sodium_utils3 test is expected to fail with address sanitizer
1818
#endif
19+
#ifdef __SANITIZE_THREAD__
20+
# warning The sodium_utils3 test is expected to fail with thread sanitizer
21+
#endif
1922

2023
__attribute__((noreturn)) static void
2124
segv_handler(int sig)
@@ -75,7 +78,7 @@ main(void)
7578
sodium_mprotect_readwrite(buf);
7679
#endif
7780

78-
#if defined(HAVE_CATCHABLE_SEGV) && !defined(__EMSCRIPTEN__) && !defined(__SANITIZE_ADDRESS__)
81+
#if defined(HAVE_CATCHABLE_SEGV) && !defined(__EMSCRIPTEN__) && !defined(__SANITIZE_ADDRESS__) && !defined(__SANITIZE_THREAD__)
7982
sodium_memzero(((unsigned char *) buf) - 8, 8U);
8083
sodium_mprotect_readonly(buf);
8184
sodium_free(buf);

0 commit comments

Comments
 (0)