diff options
author | 2018-11-29 22:23:22 +0000 | |
---|---|---|
committer | 2018-11-29 22:23:22 +0000 | |
commit | a3144fb430d1ea50bbe9aa008f655315e6d576ac (patch) | |
tree | 73e554458fead619353b603044f91cf8e1e2a634 | |
parent | remove double .Pp. oops - sorry for not spotting! (diff) | |
download | wireguard-openbsd-a3144fb430d1ea50bbe9aa008f655315e6d576ac.tar.xz wireguard-openbsd-a3144fb430d1ea50bbe9aa008f655315e6d576ac.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.
-rw-r--r-- | regress/lib/libc/malloc/malloc_ulimit2/malloc_ulimit2.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/regress/lib/libc/malloc/malloc_ulimit2/malloc_ulimit2.c b/regress/lib/libc/malloc/malloc_ulimit2/malloc_ulimit2.c index 95106490904..f083e31841d 100644 --- a/regress/lib/libc/malloc/malloc_ulimit2/malloc_ulimit2.c +++ b/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 <otto@drijf.net> */ @@ -9,7 +9,7 @@ #include <stdlib.h> #include <stdio.h> -#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"); |