svn commit: r291870 - in stable/10: contrib/netbsd-tests/lib/libc/c063 lib/libc/tests lib/libc/tests/stdio

Garrett Cooper ngie at FreeBSD.org
Sat Dec 5 21:49:37 UTC 2015


Author: ngie
Date: Sat Dec  5 21:49:35 2015
New Revision: 291870
URL: https://svnweb.freebsd.org/changeset/base/291870

Log:
  MFC r283801,r290846,r290851,r290856,r290860:
  
  r283801 (by araujo):
  
  Fix warning of implicit declaration of function 'mkdir'.
  
  Differential Revision:	D2662
  Reviewed by:		rodrigc, ngie
  
  r290846:
  
  Bump WARNS to 2
  
  Sponsored by: EMC / Isilon Storage Division
  
  r290851:
  
  Change WARNS to 2 across the board with all the libc testcases
  
  This effectively "reverts" r290846
  
  Sponsored by: EMC / Isilon Storage Division
  
  r290856 (by bapt):
  
  also skip the definition of ':fopen_regular' to avoid the build to fail due to
  unused variables defined by ATF macros
  
  r290860 (by bapt):
  
  Remove unused variables to fix building world

Modified:
  stable/10/contrib/netbsd-tests/lib/libc/c063/t_faccessat.c
  stable/10/contrib/netbsd-tests/lib/libc/c063/t_openat.c
  stable/10/contrib/netbsd-tests/lib/libc/c063/t_readlinkat.c
  stable/10/contrib/netbsd-tests/lib/libc/c063/t_unlinkat.c
  stable/10/lib/libc/tests/Makefile.netbsd-tests
  stable/10/lib/libc/tests/stdio/fmemopen2_test.c
  stable/10/lib/libc/tests/stdio/getdelim_test.c
  stable/10/lib/libc/tests/stdio/perror_test.c
  stable/10/lib/libc/tests/stdio/scanfloat_test.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/contrib/netbsd-tests/lib/libc/c063/t_faccessat.c
==============================================================================
--- stable/10/contrib/netbsd-tests/lib/libc/c063/t_faccessat.c	Sat Dec  5 21:38:53 2015	(r291869)
+++ stable/10/contrib/netbsd-tests/lib/libc/c063/t_faccessat.c	Sat Dec  5 21:49:35 2015	(r291870)
@@ -40,6 +40,9 @@ __RCSID("$NetBSD: t_faccessat.c,v 1.2 20
 #include <string.h>
 #include <unistd.h>
 #include <sys/param.h>
+#ifdef __FreeBSD__
+#include <sys/stat.h>
+#endif
 
 #define DIR "dir"
 #define FILE "dir/faccessat"

Modified: stable/10/contrib/netbsd-tests/lib/libc/c063/t_openat.c
==============================================================================
--- stable/10/contrib/netbsd-tests/lib/libc/c063/t_openat.c	Sat Dec  5 21:38:53 2015	(r291869)
+++ stable/10/contrib/netbsd-tests/lib/libc/c063/t_openat.c	Sat Dec  5 21:49:35 2015	(r291870)
@@ -40,6 +40,9 @@ __RCSID("$NetBSD: t_openat.c,v 1.2 2013/
 #include <string.h>
 #include <unistd.h>
 #include <sys/param.h>
+#ifdef __FreeBSD__
+#include <sys/stat.h>
+#endif
 
 #define DIR "dir"
 #define FILE "dir/openat"

Modified: stable/10/contrib/netbsd-tests/lib/libc/c063/t_readlinkat.c
==============================================================================
--- stable/10/contrib/netbsd-tests/lib/libc/c063/t_readlinkat.c	Sat Dec  5 21:38:53 2015	(r291869)
+++ stable/10/contrib/netbsd-tests/lib/libc/c063/t_readlinkat.c	Sat Dec  5 21:49:35 2015	(r291870)
@@ -40,6 +40,9 @@ __RCSID("$NetBSD: t_readlinkat.c,v 1.3 2
 #include <string.h>
 #include <unistd.h>
 #include <sys/param.h>
+#ifdef __FreeBSD__
+#include <sys/stat.h>
+#endif
 
 #define DIR "dir"
 #define FILE "dir/readlinkat"

Modified: stable/10/contrib/netbsd-tests/lib/libc/c063/t_unlinkat.c
==============================================================================
--- stable/10/contrib/netbsd-tests/lib/libc/c063/t_unlinkat.c	Sat Dec  5 21:38:53 2015	(r291869)
+++ stable/10/contrib/netbsd-tests/lib/libc/c063/t_unlinkat.c	Sat Dec  5 21:49:35 2015	(r291870)
@@ -40,6 +40,9 @@ __RCSID("$NetBSD: t_unlinkat.c,v 1.2 201
 #include <string.h>
 #include <unistd.h>
 #include <sys/param.h>
+#ifdef __FreeBSD__
+#include <sys/stat.h>
+#endif
 
 #define DIR "dir"
 #define FILE "dir/unlinkat"

Modified: stable/10/lib/libc/tests/Makefile.netbsd-tests
==============================================================================
--- stable/10/lib/libc/tests/Makefile.netbsd-tests	Sat Dec  5 21:38:53 2015	(r291869)
+++ stable/10/lib/libc/tests/Makefile.netbsd-tests	Sat Dec  5 21:49:35 2015	(r291870)
@@ -4,4 +4,6 @@ OBJTOP?=	${.OBJDIR:H:H:H:H}
 SRCTOP?=	${.CURDIR:H:H:H:H}
 TESTSRC?=	${SRCTOP}/contrib/netbsd-tests/lib/libc/${.CURDIR:T}
 
+WARNS?=		2
+
 .include <netbsd-tests.test.mk>

Modified: stable/10/lib/libc/tests/stdio/fmemopen2_test.c
==============================================================================
--- stable/10/lib/libc/tests/stdio/fmemopen2_test.c	Sat Dec  5 21:38:53 2015	(r291869)
+++ stable/10/lib/libc/tests/stdio/fmemopen2_test.c	Sat Dec  5 21:49:35 2015	(r291870)
@@ -104,10 +104,9 @@ ATF_TC_WITHOUT_HEAD(test_autoalloc);
 ATF_TC_BODY(test_autoalloc, tc)
 {
 	/* Let fmemopen allocate the buffer. */
-	char str[] = "A quick test";
 	FILE *fp;
 	long pos;
-	size_t nofw, nofr, i;
+	size_t nofw, i;
 	int rc;
 
 	/* Open a FILE * using fmemopen. */

Modified: stable/10/lib/libc/tests/stdio/getdelim_test.c
==============================================================================
--- stable/10/lib/libc/tests/stdio/getdelim_test.c	Sat Dec  5 21:38:53 2015	(r291869)
+++ stable/10/lib/libc/tests/stdio/getdelim_test.c	Sat Dec  5 21:49:35 2015	(r291870)
@@ -113,7 +113,6 @@ ATF_TC_BODY(getline_basic, tc)
 ATF_TC_WITHOUT_HEAD(stream_error);
 ATF_TC_BODY(stream_error, tc)
 {
-	FILE *fp;
 	char *line;
 	size_t linecap;
 

Modified: stable/10/lib/libc/tests/stdio/perror_test.c
==============================================================================
--- stable/10/lib/libc/tests/stdio/perror_test.c	Sat Dec  5 21:38:53 2015	(r291869)
+++ stable/10/lib/libc/tests/stdio/perror_test.c	Sat Dec  5 21:49:35 2015	(r291870)
@@ -48,7 +48,7 @@ static char tmpfil[PATH_MAX];
 ATF_TC_WITHOUT_HEAD(perror_test);
 ATF_TC_BODY(perror_test, tc)
 {
-	char buf[512], lbuf[512];
+	char lbuf[512];
 	int i;
 	char *s;
 

Modified: stable/10/lib/libc/tests/stdio/scanfloat_test.c
==============================================================================
--- stable/10/lib/libc/tests/stdio/scanfloat_test.c	Sat Dec  5 21:38:53 2015	(r291869)
+++ stable/10/lib/libc/tests/stdio/scanfloat_test.c	Sat Dec  5 21:49:35 2015	(r291870)
@@ -58,7 +58,6 @@ ATF_TC_BODY(normalized_numbers, tc)
 	long double ld = 0.0;
 	double d = 0.0;
 	float f = 0.0;
-	char *endp;
 
 	buf[0] = '\0';
 	ATF_REQUIRE(setlocale(LC_NUMERIC, ""));
@@ -157,7 +156,6 @@ ATF_TC_BODY(infinities_and_nans, tc)
 	long double ld = 0.0;
 	double d = 0.0;
 	float f = 0.0;
-	char *endp;
 
 	ATF_REQUIRE(setlocale(LC_NUMERIC, "C"));
 
@@ -205,11 +203,8 @@ ATF_TC_BODY(infinities_and_nans, tc)
 ATF_TC_WITHOUT_HEAD(rounding_tests);
 ATF_TC_BODY(rounding_tests, tc)
 {
-	char buf[128];
 	long double ld = 0.0;
 	double d = 0.0;
-	float f = 0.0;
-	char *endp;
 
 	ATF_REQUIRE(setlocale(LC_NUMERIC, "C"));
 
@@ -287,10 +282,6 @@ ATF_TC_BODY(rounding_tests, tc)
 ATF_TC_WITHOUT_HEAD(strtod);
 ATF_TC_BODY(strtod, tc)
 {
-	char buf[128];
-	long double ld = 0.0;
-	double d = 0.0;
-	float f = 0.0;
 	char *endp;
 
 	ATF_REQUIRE(setlocale(LC_NUMERIC, "C"));


More information about the svn-src-stable mailing list