[PATCH] [compiler-rt] Fix a flaky heap-overflow-large.cc test

Kuba Brecka kuba.brecka at gmail.com
Sun Mar 22 10:49:31 PDT 2015


Updating patch.


http://reviews.llvm.org/D8515

Files:
  test/asan/TestCases/heap-overflow-large.cc

Index: test/asan/TestCases/heap-overflow-large.cc
===================================================================
--- test/asan/TestCases/heap-overflow-large.cc
+++ test/asan/TestCases/heap-overflow-large.cc
@@ -19,5 +19,5 @@
   // CHECK: main
   // CHECK-NOT: CHECK failed
   delete[] x;
-  return res ? res : 1;
+  return (res % 10) + 1;
 }

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D8515.22420.patch
Type: text/x-patch
Size: 347 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150322/8c904ac6/attachment.bin>


More information about the llvm-commits mailing list