diff options
Diffstat (limited to 'compiler-rt/test/asan/TestCases/Linux/halt_on_error-signals.c')
| -rw-r--r-- | compiler-rt/test/asan/TestCases/Linux/halt_on_error-signals.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/compiler-rt/test/asan/TestCases/Linux/halt_on_error-signals.c b/compiler-rt/test/asan/TestCases/Linux/halt_on_error-signals.c index 93d5f4b2670..a1ea8c8985d 100644 --- a/compiler-rt/test/asan/TestCases/Linux/halt_on_error-signals.c +++ b/compiler-rt/test/asan/TestCases/Linux/halt_on_error-signals.c @@ -1,6 +1,6 @@ // Test interaction of Asan recovery mode with asynch signals. // -// RUN: %clang_asan -fsanitize-recover=address %s -o %t +// RUN: %clang_asan -fsanitize-recover=address -pthread %s -o %t // // RUN: rm -f %t.log // RUN: env ASAN_OPTIONS=halt_on_error=false %run %t 1000 >%t.log 2>&1 || true @@ -10,6 +10,9 @@ // // REQUIRES: stable-runtime +#define _POSIX_C_SOURCE 200112 // rand_r +#define _SVID_SOURCE 1 // SA_NODEFER + #include <stdio.h> #include <stdlib.h> #include <string.h> |

