diff options
author | miod <> | 2003-12-25 18:49:57 +0000 |
---|---|---|
committer | miod <> | 2003-12-25 18:49:57 +0000 |
commit | 6ce8ea96efa17acf7e15c5870d98374d2f856447 (patch) | |
tree | 91e613afcaacfc5028f42200a0ee0d086b5c6b5c /src/regress/lib | |
parent | d2922c993c64fa79b7a86bc65d005e119cf3b76c (diff) | |
download | openbsd-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.c | 3 |
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; |