[asan] Match BUS and SIGV to fix test on Darwin

llvm-svn: 300906
This commit is contained in:
Vitaly Buka 2017-04-20 21:58:18 +00:00
parent 100b7f6eae
commit 70197c55b0
1 changed files with 1 additions and 1 deletions

View File

@ -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);