From 70197c55b0f1daac88a5061f06a474f24041074f Mon Sep 17 00:00:00 2001 From: Vitaly Buka Date: Thu, 20 Apr 2017 21:58:18 +0000 Subject: [PATCH] [asan] Match BUS and SIGV to fix test on Darwin llvm-svn: 300906 --- compiler-rt/test/asan/TestCases/Posix/strchr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler-rt/test/asan/TestCases/Posix/strchr.c b/compiler-rt/test/asan/TestCases/Posix/strchr.c index df854d79ec82..76d96da47c07 100644 --- a/compiler-rt/test/asan/TestCases/Posix/strchr.c +++ b/compiler-rt/test/asan/TestCases/Posix/strchr.c @@ -27,7 +27,7 @@ int main(int argc, char **argv) { if (mprotect(p + 1, 1, PROT_NONE)) return 1; char *r = strchr(s, 'x'); - // CHECK: AddressSanitizer: SEGV on unknown address + // CHECK: AddressSanitizer: {{SEGV|BUS}} on unknown address // CHECK: The signal is caused by a READ memory access // CHECK: strchr.c:[[@LINE-3]] assert(r == p);