summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormiod <>2025-10-26 21:25:12 +0000
committermiod <>2025-10-26 21:25:12 +0000
commit329445752848500279bb6742aafcc6b87c5f3fb6 (patch)
treef845bd2ef0e0c724bf78bdf5af24b01e01313a44
parentcff39d5219932cf5330409b2709c6a15911460d5 (diff)
downloadopenbsd-329445752848500279bb6742aafcc6b87c5f3fb6.tar.gz
openbsd-329445752848500279bb6742aafcc6b87c5f3fb6.tar.bz2
openbsd-329445752848500279bb6742aafcc6b87c5f3fb6.zip
This test takes *days* to complete on older platforms, reduce the loop count
for them.
-rw-r--r--src/regress/lib/libc/malloc/malloc_general/malloc_general.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/regress/lib/libc/malloc/malloc_general/malloc_general.c b/src/regress/lib/libc/malloc/malloc_general/malloc_general.c
index b243787bcf..b0387ce64e 100644
--- a/src/regress/lib/libc/malloc/malloc_general/malloc_general.c
+++ b/src/regress/lib/libc/malloc/malloc_general/malloc_general.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: malloc_general.c,v 1.7 2022/01/09 07:18:50 otto Exp $ */ 1/* $OpenBSD: malloc_general.c,v 1.8 2025/10/26 21:25:12 miod Exp $ */
2/* 2/*
3 * Copyright (c) 2017 Otto Moerbeek <otto@drijf.net> 3 * Copyright (c) 2017 Otto Moerbeek <otto@drijf.net>
4 * 4 *
@@ -24,6 +24,12 @@
24 24
25#define N 1000 25#define N 1000
26 26
27#if defined(_LP64)
28#define COUNT 800000
29#else
30#define COUNT 20000
31#endif
32
27size_t 33size_t
28size(void) 34size(void)
29{ 35{
@@ -59,7 +65,7 @@ main(int argc, char *argv[])
59 void * q; 65 void * q;
60 size_t sz; 66 size_t sz;
61 67
62 for (count = 0; count < 800000; count++) { 68 for (count = 0; count < COUNT; count++) {
63 if (count % 10000 == 0) { 69 if (count % 10000 == 0) {
64 printf("."); 70 printf(".");
65 fflush(stdout); 71 fflush(stdout);