Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 5 Dec 2015 04:10:16 +0000 (UTC)
From:      Garrett Cooper <ngie@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r291839 - head/lib/libc/tests/stdio
Message-ID:  <201512050410.tB54AGnK001420@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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. */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201512050410.tB54AGnK001420>