[compiler-rt] r272020 - [asan] make print_memory_profile_test more reliable by using large allocation sizes. Hoping to fix the llvm-clang-lld-x86_64-debian-fast bot

Kostya Serebryany via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 7 09:08:59 PDT 2016


Author: kcc
Date: Tue Jun  7 11:08:59 2016
New Revision: 272020

URL: http://llvm.org/viewvc/llvm-project?rev=272020&view=rev
Log:
[asan] make print_memory_profile_test more reliable by using large allocation sizes. Hoping to fix the llvm-clang-lld-x86_64-debian-fast bot

Modified:
    compiler-rt/trunk/test/asan/TestCases/Linux/print_memory_profile_test.cc

Modified: compiler-rt/trunk/test/asan/TestCases/Linux/print_memory_profile_test.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Linux/print_memory_profile_test.cc?rev=272020&r1=272019&r2=272020&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Linux/print_memory_profile_test.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Linux/print_memory_profile_test.cc Tue Jun  7 11:08:59 2016
@@ -13,17 +13,17 @@ char *sink[1000];
 int main() {
   int idx = 0;
   for (int i = 0; i < 17; i++)
-    sink[idx++] = new char[131];
-  for (int i = 0; i < 42; i++)
-    sink[idx++] = new char[24];
+    sink[idx++] = new char[131000];
+  for (int i = 0; i < 28; i++)
+    sink[idx++] = new char[24000];
 
   __sanitizer_print_memory_profile(100);
   __sanitizer_print_memory_profile(50);
 }
 
 // CHECK: Live Heap Allocations: {{.*}}; showing top 100%
-// CHECK: 2227 byte(s) ({{.*}}%) in 17 allocation(s)
-// CHECK: 1008 byte(s) ({{.*}}%) in 42 allocation(s)
+// CHECK: 2227000 byte(s) ({{.*}}%) in 17 allocation(s)
+// CHECK: 672000 byte(s) ({{.*}}%) in 28 allocation(s)
 // CHECK: Live Heap Allocations: {{.*}}; showing top 50%
-// CHECK: 2227 byte(s) ({{.*}}%) in 17 allocation(s)
+// CHECK: 2227000 byte(s) ({{.*}}%) in 17 allocation(s)
 // CHECK-NOT: 1008 byte




More information about the llvm-commits mailing list