[compiler-rt] r300939 - [asan] Fix test by removing "The signal is caused" check.

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


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

URL: http://llvm.org/viewvc/llvm-project?rev=300939&view=rev
Log:
[asan] Fix test by removing "The signal is caused" check.

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=300939&r1=300938&r2=300939&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Posix/strchr.c (original)
+++ compiler-rt/trunk/test/asan/TestCases/Posix/strchr.c Thu Apr 20 20:16:58 2017
@@ -28,8 +28,7 @@ int main(int argc, char **argv) {
     return 1;
   char *r = strchr(s, 'x');
   // CHECK: AddressSanitizer: {{SEGV|BUS}} on unknown address
-  // CHECK: The signal is caused by a {{READ|UNKNOWN}} memory access
-  // CHECK: strchr.c:[[@LINE-3]]
+  // CHECK: strchr.c:[[@LINE-2]]
   assert(r == p);
 
   return 0;




More information about the llvm-commits mailing list