summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKostya Serebryany <kcc@google.com>2018-09-07 01:36:34 +0000
committerKostya Serebryany <kcc@google.com>2018-09-07 01:36:34 +0000
commit6fdfd6a34fccd03eb130b585abe47fa7438e7284 (patch)
treef62b4a39c7f5a8844ef849b400cc777fd44022ff
parent13148564d4810e2095b300f06d5e458e03101ae7 (diff)
downloadbcm5719-llvm-6fdfd6a34fccd03eb130b585abe47fa7438e7284.tar.gz
bcm5719-llvm-6fdfd6a34fccd03eb130b585abe47fa7438e7284.zip
[hwasan] relax the rint-memory-usage.c test further
llvm-svn: 341625
-rw-r--r--compiler-rt/test/hwasan/TestCases/print-memory-usage.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/compiler-rt/test/hwasan/TestCases/print-memory-usage.c b/compiler-rt/test/hwasan/TestCases/print-memory-usage.c
index ed9a96a9a13..df9d534f32d 100644
--- a/compiler-rt/test/hwasan/TestCases/print-memory-usage.c
+++ b/compiler-rt/test/hwasan/TestCases/print-memory-usage.c
@@ -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]]
}
OpenPOWER on IntegriCloud