svn commit: r291839 - head/lib/libc/tests/stdio

Garrett Cooper ngie at FreeBSD.org
Sat Dec 5 04:10:17 UTC 2015


Author: ngie
Date: Sat Dec  5 04:10:15 2015
New Revision: 291839
URL: https://svnweb.freebsd.org/changeset/base/291839

Log:
  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

Modified:
  head/lib/libc/tests/stdio/getdelim_test.c

Modified: head/lib/libc/tests/stdio/getdelim_test.c
==============================================================================
--- head/lib/libc/tests/stdio/getdelim_test.c	Sat Dec  5 02:25:20 2015	(r291838)
+++ head/lib/libc/tests/stdio/getdelim_test.c	Sat Dec  5 04:10:15 2015	(r291839)
@@ -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. */


More information about the svn-src-head mailing list