[compiler-rt] r300906 - [asan] Match BUS and SIGV to fix test on Darwin

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 20 14:58:18 PDT 2017


Author: vitalybuka
Date: Thu Apr 20 16:58:18 2017
New Revision: 300906

URL: http://llvm.org/viewvc/llvm-project?rev=300906&view=rev
Log:
[asan] Match BUS and SIGV to fix test on Darwin

Modified:
    compiler-rt/trunk/test/asan/TestCases/Posix/strchr.c

Modified: compiler-rt/trunk/test/asan/TestCases/Posix/strchr.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Posix/strchr.c?rev=300906&r1=300905&r2=300906&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Posix/strchr.c (original)
+++ compiler-rt/trunk/test/asan/TestCases/Posix/strchr.c Thu Apr 20 16:58:18 2017
@@ -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);




More information about the llvm-commits mailing list