summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorngie <ngie@FreeBSD.org>2015-12-05 04:10:15 +0000
committerngie <ngie@FreeBSD.org>2015-12-05 04:10:15 +0000
commitadde10383358a789372480ae5560aa1cd9fcfbf6 (patch)
tree21e53a7eff55f4c71234236e03e93ffb299fdbc7 /lib
parent912c9a615dc676b9dae1a0596679f68ff3210257 (diff)
downloadFreeBSD-src-adde10383358a789372480ae5560aa1cd9fcfbf6.zip
FreeBSD-src-adde10383358a789372480ae5560aa1cd9fcfbf6.tar.gz
Initialize errno to 0 in the nul testcase before testing it
For some odd reason stable/10 requires this, otherwise it always fails the errno == 0 check on line 196. Sponsored by: EMC / Isilon Storage Division
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/tests/stdio/getdelim_test.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libc/tests/stdio/getdelim_test.c b/lib/libc/tests/stdio/getdelim_test.c
index ffc6810..b7596b3 100644
--- a/lib/libc/tests/stdio/getdelim_test.c
+++ b/lib/libc/tests/stdio/getdelim_test.c
@@ -177,6 +177,7 @@ ATF_TC_BODY(nul, tc)
char *line;
size_t linecap, n;
+ errno = 0;
line = NULL;
linecap = 0;
/* Make sure a NUL delimiter works. */
OpenPOWER on IntegriCloud