diff options
Diffstat (limited to 'test/asan/TestCases/Posix/strchr.c')
-rw-r--r-- | test/asan/TestCases/Posix/strchr.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/test/asan/TestCases/Posix/strchr.c b/test/asan/TestCases/Posix/strchr.c index df854d79ec825..7086e1374523f 100644 --- a/test/asan/TestCases/Posix/strchr.c +++ b/test/asan/TestCases/Posix/strchr.c @@ -27,9 +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: The signal is caused by a READ memory access - // CHECK: strchr.c:[[@LINE-3]] + // CHECK: AddressSanitizer: {{SEGV|BUS}} on unknown address assert(r == p); return 0; |