[llvm-commits] [compiler-rt] r170677 - /compiler-rt/trunk/lib/asan/tests/asan_test.cc

Kostya Serebryany kcc at google.com
Wed Dec 19 23:26:33 PST 2012


Author: kcc
Date: Thu Dec 20 01:26:33 2012
New Revision: 170677

URL: http://llvm.org/viewvc/llvm-project?rev=170677&view=rev
Log:
[asan] add ASAN_PCRE_DOTALL to two new multi-line regexps

Modified:
    compiler-rt/trunk/lib/asan/tests/asan_test.cc

Modified: compiler-rt/trunk/lib/asan/tests/asan_test.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/tests/asan_test.cc?rev=170677&r1=170676&r2=170677&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/tests/asan_test.cc (original)
+++ compiler-rt/trunk/lib/asan/tests/asan_test.cc Thu Dec 20 01:26:33 2012
@@ -796,7 +796,7 @@
 static string RightOOBErrorMessage(int oob_distance, bool is_write) {
   assert(oob_distance >= 0);
   char expected_str[100];
-  sprintf(expected_str, "%s.*located %d bytes to the right",
+  sprintf(expected_str, ASAN_PCRE_DOTALL "%s.*located %d bytes to the right",
           is_write ? "WRITE" : "READ", oob_distance);
   return string(expected_str);
 }
@@ -812,7 +812,7 @@
 static string LeftOOBErrorMessage(int oob_distance, bool is_write) {
   assert(oob_distance > 0);
   char expected_str[100];
-  sprintf(expected_str, "%s.*located %d bytes to the left",
+  sprintf(expected_str, ASAN_PCRE_DOTALL "%s.*located %d bytes to the left",
           is_write ? "WRITE" : "READ", oob_distance);
   return string(expected_str);
 }





More information about the llvm-commits mailing list