summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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");