From f886f47ca5d2be9b27a4c10d3a20cf5da69ec656 Mon Sep 17 00:00:00 2001 From: bluhm <> Date: Thu, 29 Nov 2018 22:23:22 +0000 Subject: This test does not terminate if malloc conf is preconfigured with J. Clear that option to allow running full regress with paranoid malloc flags. This is the same fix as for malloc_ulimit1. --- src/regress/lib/libc/malloc/malloc_ulimit2/malloc_ulimit2.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/regress/lib/libc/malloc/malloc_ulimit2/malloc_ulimit2.c b/src/regress/lib/libc/malloc/malloc_ulimit2/malloc_ulimit2.c index 9510649090..f083e31841 100644 --- a/src/regress/lib/libc/malloc/malloc_ulimit2/malloc_ulimit2.c +++ b/src/regress/lib/libc/malloc/malloc_ulimit2/malloc_ulimit2.c @@ -1,4 +1,4 @@ -/* $OpenBSD: malloc_ulimit2.c,v 1.3 2017/07/27 15:08:37 bluhm Exp $ */ +/* $OpenBSD: malloc_ulimit2.c,v 1.4 2018/11/29 22:23:22 bluhm Exp $ */ /* Public Domain, 2006, Otto Moerbeek */ @@ -9,7 +9,7 @@ #include #include -#define FACTOR 1024 +#define FACTOR 1024 int main() @@ -18,6 +18,10 @@ main() size_t sz; int i; void *p; + extern char *malloc_options; + + /* This test takes forever with junking turned on. */ + malloc_options = "jj"; if (getrlimit(RLIMIT_DATA, &lim) == -1) err(1, "getrlimit"); -- cgit v1.2.3-55-g6feb