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
commite860c1107b1d4238c06dc7782d7c3b0d75315afb (patch)
tree1cb75679013f28090ebc99130a4df7678ace86f2 /src
parentab1125705ce0afa7cfc172409c11c2bb8e73e524 (diff)
downloadopenbsd-e860c1107b1d4238c06dc7782d7c3b0d75315afb.tar.gz
openbsd-e860c1107b1d4238c06dc7782d7c3b0d75315afb.tar.bz2
openbsd-e860c1107b1d4238c06dc7782d7c3b0d75315afb.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");