From c5a883e788d4c9415836b58f1b2c8f54351ed4f8 Mon Sep 17 00:00:00 2001 From: asomers Date: Tue, 30 May 2017 21:03:44 +0000 Subject: [PATCH] MFC r315032-r315036, r315039, r315041 r315032: Increase WARNS for iconv tests ATF tests have a default WARNS of 0, unlike other usermode programs. Reviewed by: ngie Sponsored by: Spectra Logic Corporation Differential Revision: https://reviews.freebsd.org/D9933 r315033: Increase WARNS for nss tests ATF tests have a default WARNS of 0, unlike other usermode programs. Reviewed by: ngie Sponsored by: Spectra Logic Corporation Differential Revision: https://reviews.freebsd.org/D9933 r315034: Document that the msun tests require WARNS=0 ATF tests have a default WARNS of 0, unlike other usermode programs. This change is technically a noop, but it documents that the msun tests don't work with any warnings enabled, at least not on all architectures. Reviewed by: ngie Sponsored by: Spectra Logic Corporation Differential Revision: https://reviews.freebsd.org/D9933 r315035: Increase WARNS for libcrypt tests ATF tests have a default WARNS of 0, unlike other usermode programs. Reviewed by: ngie, julian Sponsored by: Spectra Logic Corporation Differential Revision: https://reviews.freebsd.org/D9933 r315036: Increase WARNS for libmp tests ATF tests have a default WARNS of 0, unlike other usermode programs. Reviewed by: ngie, julian Sponsored by: Spectra Logic Corporation Differential Revision: https://reviews.freebsd.org/D9933 r315039: Increase WARNS for libutil tests ATF tests have a default WARNS of 0, unlike other usermode programs. Reviewed by: ngie, julian Sponsored by: Spectra Logic Corporation Differential Revision: https://reviews.freebsd.org/D9933 r315041: Increase WARNS for pw tests ATF tests have a default WARNS of 0, unlike other usermode programs. Reviewed by: ngie, julian Sponsored by: Spectra Logic Corporation Differential Revision: https://reviews.freebsd.org/D9933 git-svn-id: svn://svn.freebsd.org/base/stable/10@319252 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f --- lib/libc/tests/iconv/Makefile | 1 + lib/libc/tests/nss/Makefile | 1 + lib/libcrypt/tests/Makefile | 1 + lib/libmp/tests/Makefile | 1 + lib/libutil/tests/Makefile | 1 + lib/msun/tests/Makefile | 2 ++ usr.sbin/pw/tests/Makefile | 1 + 7 files changed, 8 insertions(+) diff --git a/lib/libc/tests/iconv/Makefile b/lib/libc/tests/iconv/Makefile index e6ae03e9d..c412f90df 100644 --- a/lib/libc/tests/iconv/Makefile +++ b/lib/libc/tests/iconv/Makefile @@ -5,5 +5,6 @@ PACKAGE= tests TESTSDIR= ${TESTSBASE}/lib/libc/iconv ATF_TESTS_C+= iconvctl_test +WARNS?= 2 .include diff --git a/lib/libc/tests/nss/Makefile b/lib/libc/tests/nss/Makefile index 1b777c2b2..2cf6999ec 100644 --- a/lib/libc/tests/nss/Makefile +++ b/lib/libc/tests/nss/Makefile @@ -7,6 +7,7 @@ BINDIR= ${TESTSDIR} FILES+= mach +WARNS?= 1 CFLAGS+= -I${SRCTOP}/tests ATF_TESTS_C+= getaddrinfo_test diff --git a/lib/libcrypt/tests/Makefile b/lib/libcrypt/tests/Makefile index 8e3fc2ea8..b7f9c0e29 100644 --- a/lib/libcrypt/tests/Makefile +++ b/lib/libcrypt/tests/Makefile @@ -6,6 +6,7 @@ TESTSRC= ${SRCTOP}/contrib/netbsd-tests/lib/libcrypt NETBSD_ATF_TESTS_C+= crypt_test +WARNS?= 6 CFLAGS+= -I${.CURDIR:H} DPADD+= ${LIBCRYPT} LDADD+= -lcrypt diff --git a/lib/libmp/tests/Makefile b/lib/libmp/tests/Makefile index d556347b7..037ab9cdd 100644 --- a/lib/libmp/tests/Makefile +++ b/lib/libmp/tests/Makefile @@ -4,5 +4,6 @@ TAP_TESTS_C+= legacy_test DPADD+= ${LIBCRYPTO} ${LIBMP} LDADD+= -lcrypto -lmp +WARNS?= 3 .include diff --git a/lib/libutil/tests/Makefile b/lib/libutil/tests/Makefile index 92540c9e8..dd7f0452b 100644 --- a/lib/libutil/tests/Makefile +++ b/lib/libutil/tests/Makefile @@ -9,5 +9,6 @@ TAP_TESTS_C+= trimdomain-nodomain_test DPADD+= ${LIBUTIL} LDADD+= -lutil +WARNS?= 2 .include diff --git a/lib/msun/tests/Makefile b/lib/msun/tests/Makefile index 318fc7b82..0d70cd472 100644 --- a/lib/msun/tests/Makefile +++ b/lib/msun/tests/Makefile @@ -2,6 +2,8 @@ TESTSRC= ${SRCTOP}/contrib/netbsd-tests/lib/libm +WARNS?= 0 + # All architectures on FreeBSD have fenv.h CFLAGS+= -DHAVE_FENV_H # For isqemu.h diff --git a/usr.sbin/pw/tests/Makefile b/usr.sbin/pw/tests/Makefile index 1033282f3..c2ffc8048 100644 --- a/usr.sbin/pw/tests/Makefile +++ b/usr.sbin/pw/tests/Makefile @@ -4,6 +4,7 @@ BINDIR= ${TESTSDIR} PROGS+= crypt LDADD+= -lcrypt +WARNS?= 6 ATF_TESTS_SH= pw_etcdir_test \ pw_lock_test \ -- 2.45.0