[compiler-rt] r341625 - [hwasan] relax the rint-memory-usage.c test further

Kostya Serebryany via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 6 18:36:34 PDT 2018


Author: kcc
Date: Thu Sep  6 18:36:34 2018
New Revision: 341625

URL: http://llvm.org/viewvc/llvm-project?rev=341625&view=rev
Log:
[hwasan] relax the rint-memory-usage.c test further

Modified:
    compiler-rt/trunk/test/hwasan/TestCases/print-memory-usage.c

Modified: compiler-rt/trunk/test/hwasan/TestCases/print-memory-usage.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/hwasan/TestCases/print-memory-usage.c?rev=341625&r1=341624&r2=341625&view=diff
==============================================================================
--- compiler-rt/trunk/test/hwasan/TestCases/print-memory-usage.c (original)
+++ compiler-rt/trunk/test/hwasan/TestCases/print-memory-usage.c Thu Sep  6 18:36:34 2018
@@ -39,17 +39,17 @@ int main() {
   sink = malloc_and_use(10);
 
   __hwasan_print_memory_usage();
-  // CHECK: HWASAN pid: [[PID:[0-9]*]] rss: {{.*}} threads: 1 stacks: 1024000 thr_aux: {{.*}} stack_depot: {{.*}} uniq_stacks: [[UNIQ_STACKS:[0-9]*]] heap: [[HEAP:[0-9]*]]
+  // CHECK: HWASAN pid: [[PID:[0-9]*]] rss: {{.*}} threads: 1 stacks: [[STACKS:[0-9]*]] thr_aux: {{.*}} stack_depot: {{.*}} uniq_stacks: [[UNIQ_STACKS:[0-9]*]] heap: [[HEAP:[0-9]*]]
 
   void *one_meg = malloc_and_use(1 << 20);
 
   __hwasan_print_memory_usage();
-  // CHECK: HWASAN pid: [[PID]] rss: {{.*}} threads: 1 stacks: 1024000 thr_aux: {{.*}} stack_depot: {{.*}}
+  // CHECK: HWASAN pid: [[PID]] rss: {{.*}} threads: 1 stacks: [[STACKS]] thr_aux: {{.*}} stack_depot: {{.*}}
 
   free(one_meg);
 
   __hwasan_print_memory_usage();
-  // CHECK: HWASAN pid: [[PID]] rss: {{.*}} threads: 1 stacks: 1024000 thr_aux: {{.*}} stack_depot: {{.*}} uniq_stacks: {{.*}} heap: [[HEAP]]
+  // CHECK: HWASAN pid: [[PID]] rss: {{.*}} threads: 1 stacks: [[STACKS]] thr_aux: {{.*}} stack_depot: {{.*}} uniq_stacks: {{.*}} heap: [[HEAP]]
 
   pthread_t t1, t2, t3, t4;
 
@@ -61,12 +61,12 @@ int main() {
   pthread_join(t4, NULL);
 
   __hwasan_print_memory_usage();
-  // CHECK: HWASAN pid: [[PID]] rss: {{.*}} threads: 4 stacks: 4083520
+  // CHECK: HWASAN pid: [[PID]] rss: {{.*}} threads: 4 stacks:
 
   __sync_fetch_and_add(&state, 1);
   pthread_join(t1, NULL);
   pthread_join(t2, NULL);
   pthread_join(t3, NULL);
   __hwasan_print_memory_usage();
-  // CHECK: HWASAN pid: [[PID]] rss: {{.*}} threads: 1 stacks: 1024000
+  // CHECK: HWASAN pid: [[PID]] rss: {{.*}} threads: 1 stacks: [[STACKS]]
 }




More information about the llvm-commits mailing list