diff options
Diffstat (limited to 'src/regress/lib/libc/malloc/malloc_ulimit2')
| -rw-r--r-- | src/regress/lib/libc/malloc/malloc_ulimit2/malloc_ulimit2.c | 9 |
1 files changed, 4 insertions, 5 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 f083e31841..5d9e3774e7 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.4 2018/11/29 22:23:22 bluhm Exp $ */ | 1 | /* $OpenBSD: malloc_ulimit2.c,v 1.5 2019/06/12 11:31:36 bluhm Exp $ */ |
| 2 | 2 | ||
| 3 | /* Public Domain, 2006, Otto Moerbeek <otto@drijf.net> */ | 3 | /* Public Domain, 2006, Otto Moerbeek <otto@drijf.net> */ |
| 4 | 4 | ||
| @@ -11,6 +11,9 @@ | |||
| 11 | 11 | ||
| 12 | #define FACTOR 1024 | 12 | #define FACTOR 1024 |
| 13 | 13 | ||
| 14 | /* This test takes forever with junking turned on. */ | ||
| 15 | char *malloc_options = "jj"; | ||
| 16 | |||
| 14 | int | 17 | int |
| 15 | main() | 18 | main() |
| 16 | { | 19 | { |
| @@ -18,10 +21,6 @@ main() | |||
| 18 | size_t sz; | 21 | size_t sz; |
| 19 | int i; | 22 | int i; |
| 20 | void *p; | 23 | void *p; |
| 21 | extern char *malloc_options; | ||
| 22 | |||
| 23 | /* This test takes forever with junking turned on. */ | ||
| 24 | malloc_options = "jj"; | ||
| 25 | 24 | ||
| 26 | if (getrlimit(RLIMIT_DATA, &lim) == -1) | 25 | if (getrlimit(RLIMIT_DATA, &lim) == -1) |
| 27 | err(1, "getrlimit"); | 26 | err(1, "getrlimit"); |
