summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbluhm <>2018-11-29 22:23:22 +0000
committerbluhm <>2018-11-29 22:23:22 +0000
commitf886f47ca5d2be9b27a4c10d3a20cf5da69ec656 (patch)
tree1cb75679013f28090ebc99130a4df7678ace86f2 /src
parent9d3fd7bf32e6e08b2ef3e2c16b1dc048c372d245 (diff)
downloadopenbsd-f886f47ca5d2be9b27a4c10d3a20cf5da69ec656.tar.gz
openbsd-f886f47ca5d2be9b27a4c10d3a20cf5da69ec656.tar.bz2
openbsd-f886f47ca5d2be9b27a4c10d3a20cf5da69ec656.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/regress/lib/libc/malloc/malloc_ulimit2/malloc_ulimit2.c8
1 files changed, 6 insertions, 2 deletions
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 @@
1/* $OpenBSD: malloc_ulimit2.c,v 1.3 2017/07/27 15:08:37 bluhm Exp $ */ 1/* $OpenBSD: malloc_ulimit2.c,v 1.4 2018/11/29 22:23:22 bluhm Exp $ */
2 2
3/* Public Domain, 2006, Otto Moerbeek <otto@drijf.net> */ 3/* Public Domain, 2006, Otto Moerbeek <otto@drijf.net> */
4 4
@@ -9,7 +9,7 @@
9#include <stdlib.h> 9#include <stdlib.h>
10#include <stdio.h> 10#include <stdio.h>
11 11
12#define FACTOR 1024 12#define FACTOR 1024
13 13
14int 14int
15main() 15main()
@@ -18,6 +18,10 @@ main()
18 size_t sz; 18 size_t sz;
19 int i; 19 int i;
20 void *p; 20 void *p;
21 extern char *malloc_options;
22
23 /* This test takes forever with junking turned on. */
24 malloc_options = "jj";
21 25
22 if (getrlimit(RLIMIT_DATA, &lim) == -1) 26 if (getrlimit(RLIMIT_DATA, &lim) == -1)
23 err(1, "getrlimit"); 27 err(1, "getrlimit");