summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2003-12-25 18:49:58 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2003-12-25 18:49:58 +0000
commit04c7e5ba15176d9df8d9c68911cd60e39417b4e8 (patch)
tree250a85414235bcb73740c6ec8d5c67dca53c6acc
parentf5ed6cfbe9243478083b3bb09f752e09bb2ed562 (diff)
Test a large negative malloc value as well.
-rw-r--r--regress/lib/libc/malloc/malloc_errno/malloc_errno.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/regress/lib/libc/malloc/malloc_errno/malloc_errno.c b/regress/lib/libc/malloc/malloc_errno/malloc_errno.c
index 7f77544665b..896ea3c9004 100644
--- a/regress/lib/libc/malloc/malloc_errno/malloc_errno.c
+++ b/regress/lib/libc/malloc/malloc_errno/malloc_errno.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: malloc_errno.c,v 1.3 2003/08/15 23:13:07 deraadt Exp $ */
+/* $OpenBSD: malloc_errno.c,v 1.4 2003/12/25 18:49:57 miod Exp $ */
/*
* Public domain. 2003, Otto Moerbeek
*/
@@ -39,6 +39,7 @@ main(int argc, char *argv[])
testerrno(-1);
testerrno(-1000);
testerrno(-10000);
+ testerrno(-10000000);
for (i = 0; i < 0x10; i++)
testerrno(i * 0x10000000);
return 0;