From adde10383358a789372480ae5560aa1cd9fcfbf6 Mon Sep 17 00:00:00 2001 From: ngie Date: Sat, 5 Dec 2015 04:10:15 +0000 Subject: 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 --- lib/libc/tests/stdio/getdelim_test.c | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/libc/tests/stdio/getdelim_test.c') 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. */ -- cgit v1.1