Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests - tests explicitly check failure modes, ignore those w...



details:   https://anonhg.NetBSD.org/src/rev/7885936aab28
branches:  trunk
changeset: 838915:7885936aab28
user:      mrg <mrg%NetBSD.org@localhost>
date:      Mon Feb 04 05:24:18 2019 +0000

description:
- tests explicitly check failure modes, ignore those warnings

diffstat:

 tests/kernel/Makefile       |  7 ++++++-
 tests/lib/libc/ssp/Makefile |  7 ++++++-
 2 files changed, 12 insertions(+), 2 deletions(-)

diffs (40 lines):

diff -r e0e09ea83967 -r 7885936aab28 tests/kernel/Makefile
--- a/tests/kernel/Makefile     Mon Feb 04 04:56:35 2019 +0000
+++ b/tests/kernel/Makefile     Mon Feb 04 05:24:18 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.57 2019/02/03 03:20:24 thorpej Exp $
+# $NetBSD: Makefile,v 1.58 2019/02/04 05:24:18 mrg Exp $
 
 NOMAN=         # defined
 
@@ -66,6 +66,11 @@
        ${HOST_SH} ${.ALLSRC} ${.TARGET}
 CPPFLAGS.t_subr_prf.c= -Wno-pointer-sign       # XXX platform vs kernel SHA2
 
+.if defined(HAVE_GCC) && ${HAVE_GCC} == 7 && ${ACTIVE_CC} == "gcc"
+# Test explicitly tests failure modes.
+CPPFLAGS.t_subr_prf.c+=        -Wno-error=format-truncation
+.endif
+
 CLEANFILES+=   t_subr_prf.c
 
 LDADD.h_segv+= -lm
diff -r e0e09ea83967 -r 7885936aab28 tests/lib/libc/ssp/Makefile
--- a/tests/lib/libc/ssp/Makefile       Mon Feb 04 04:56:35 2019 +0000
+++ b/tests/lib/libc/ssp/Makefile       Mon Feb 04 05:24:18 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.7 2014/04/06 19:28:59 christos Exp $
+# $NetBSD: Makefile,v 1.8 2019/02/04 05:24:18 mrg Exp $
 
 NOMAN=         # defined
 
@@ -48,4 +48,9 @@
 PROGS+=                h_vsnprintf
 PROGS+=                h_vsprintf
 
+.if defined(HAVE_GCC) && ${HAVE_GCC} == 7 && ${ACTIVE_CC} == "gcc"
+# Test exercises truncation
+COPTS.h_snprintf.c+=   -Wno-error=format-truncation
+.endif
+
 .include <bsd.test.mk>



Home | Main Index | Thread Index | Old Index