summaryrefslogtreecommitdiff
path: root/src/regress/lib
diff options
context:
space:
mode:
authormiod <>2003-12-25 18:49:57 +0000
committermiod <>2003-12-25 18:49:57 +0000
commit6ce8ea96efa17acf7e15c5870d98374d2f856447 (patch)
tree91e613afcaacfc5028f42200a0ee0d086b5c6b5c /src/regress/lib
parentd2922c993c64fa79b7a86bc65d005e119cf3b76c (diff)
downloadopenbsd-6ce8ea96efa17acf7e15c5870d98374d2f856447.tar.gz
openbsd-6ce8ea96efa17acf7e15c5870d98374d2f856447.tar.bz2
openbsd-6ce8ea96efa17acf7e15c5870d98374d2f856447.zip
Test a large negative malloc value as well.
Diffstat (limited to 'src/regress/lib')
-rw-r--r--src/regress/lib/libc/malloc/malloc_errno/malloc_errno.c3
1 files changed, 2 insertions, 1 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 7f77544665..896ea3c900 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 @@
1/* $OpenBSD: malloc_errno.c,v 1.3 2003/08/15 23:13:07 deraadt Exp $ */ 1/* $OpenBSD: malloc_errno.c,v 1.4 2003/12/25 18:49:57 miod Exp $ */
2/* 2/*
3 * Public domain. 2003, Otto Moerbeek 3 * Public domain. 2003, Otto Moerbeek
4 */ 4 */
@@ -39,6 +39,7 @@ main(int argc, char *argv[])
39 testerrno(-1); 39 testerrno(-1);
40 testerrno(-1000); 40 testerrno(-1000);
41 testerrno(-10000); 41 testerrno(-10000);
42 testerrno(-10000000);
42 for (i = 0; i < 0x10; i++) 43 for (i = 0; i < 0x10; i++)
43 testerrno(i * 0x10000000); 44 testerrno(i * 0x10000000);
44 return 0; 45 return 0;