From 6be28dc6a94d5924375aa3d5124cd3437ce39e7b Mon Sep 17 00:00:00 2001 From: bluhm <> Date: Tue, 11 Jun 2019 22:16:13 +0000 Subject: Disable junking with malloc options. If set, the test hangs on low memory arm64 machines. found by patrick@; OK otto@ --- src/regress/lib/libc/malloc/malloc_errno/malloc_errno.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/regress/lib/libc/malloc/malloc_errno/malloc_errno.c b/src/regress/lib/libc/malloc/malloc_errno/malloc_errno.c index 896ea3c900..1759291f38 100644 --- a/src/regress/lib/libc/malloc/malloc_errno/malloc_errno.c +++ b/src/regress/lib/libc/malloc/malloc_errno/malloc_errno.c @@ -1,4 +1,4 @@ -/* $OpenBSD: malloc_errno.c,v 1.4 2003/12/25 18:49:57 miod Exp $ */ +/* $OpenBSD: malloc_errno.c,v 1.5 2019/06/11 22:16:13 bluhm Exp $ */ /* * Public domain. 2003, Otto Moerbeek */ @@ -7,6 +7,9 @@ #include #include +/* On arm64 with 2G of memory this test hangs while junking. */ +char *malloc_options = "jj"; + static void testerrno(size_t sz) { @@ -19,7 +22,7 @@ testerrno(size_t sz) errx(1, "fail: %lx %p %d", (unsigned long)sz, p, errno); /* if alloc succeeded, test if errno did not change */ - if (p != NULL && errno != -1) + if (p != NULL && errno != -1) errx(1, "fail: %lx %p %d", (unsigned long)sz, p, errno); free(p); -- cgit v1.2.3-55-g6feb