[asan] relax the test for long double
authorKostya Serebryany <kcc@google.com>
Thu, 22 May 2014 14:50:14 +0000 (14:50 +0000)
committerKostya Serebryany <kcc@google.com>
Thu, 22 May 2014 14:50:14 +0000 (14:50 +0000)
llvm-svn: 209445

compiler-rt/lib/asan/tests/asan_test.cc

index 5ec6a4d..7597a5d 100644 (file)
@@ -183,8 +183,8 @@ TEST(AddressSanitizer, UAF_char) {
 TEST(AddressSanitizer, UAF_long_double) {
   if (sizeof(long double) == sizeof(double)) return;
   long double *p = Ident(new long double[10]);
-  EXPECT_DEATH(Ident(p)[12] = 0, "WRITE of size 1[06]");
-  EXPECT_DEATH(Ident(p)[0] = Ident(p)[12], "READ of size 1[06]");
+  EXPECT_DEATH(Ident(p)[12] = 0, "WRITE of size 1[026]");
+  EXPECT_DEATH(Ident(p)[0] = Ident(p)[12], "READ of size 1[026]");
   delete [] Ident(p);
 }