Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/include Switch from atf_tc_fail to atf_tc_fail_nonfata...
details: https://anonhg.NetBSD.org/src/rev/24319c18138b
branches: trunk
changeset: 764487:24319c18138b
user: njoly <njoly%NetBSD.org@localhost>
date: Mon Apr 25 20:51:14 2011 +0000
description:
Switch from atf_tc_fail to atf_tc_fail_nonfatal to report all missing
defines, not only the first one.
diffstat:
tests/include/t_netdb.c | 50 ++++++++++++++++++++++++------------------------
1 files changed, 25 insertions(+), 25 deletions(-)
diffs (225 lines):
diff -r 2046202c13d1 -r 24319c18138b tests/include/t_netdb.c
--- a/tests/include/t_netdb.c Mon Apr 25 18:30:18 2011 +0000
+++ b/tests/include/t_netdb.c Mon Apr 25 20:51:14 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_netdb.c,v 1.1 2011/04/10 10:49:44 jruoho Exp $ */
+/* $NetBSD: t_netdb.c,v 1.2 2011/04/25 20:51:14 njoly Exp $ */
/*-
* Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: t_netdb.c,v 1.1 2011/04/10 10:49:44 jruoho Exp $");
+__RCSID("$NetBSD: t_netdb.c,v 1.2 2011/04/25 20:51:14 njoly Exp $");
#include <atf-c.h>
#include <netdb.h>
@@ -56,7 +56,7 @@
fail = false;
#endif
if (fail != false)
- atf_tc_fail("AI_PASSIVE not defined");
+ atf_tc_fail_nonfatal("AI_PASSIVE not defined");
fail = true;
@@ -64,7 +64,7 @@
fail = false;
#endif
if (fail != false)
- atf_tc_fail("AI_CANONNAME not defined");
+ atf_tc_fail_nonfatal("AI_CANONNAME not defined");
fail = true;
@@ -72,7 +72,7 @@
fail = false;
#endif
if (fail != false)
- atf_tc_fail("AI_NUMERICHOST not defined");
+ atf_tc_fail_nonfatal("AI_NUMERICHOST not defined");
fail = true;
@@ -80,7 +80,7 @@
fail = false;
#endif
if (fail != false)
- atf_tc_fail("AI_NUMERICSERV not defined");
+ atf_tc_fail_nonfatal("AI_NUMERICSERV not defined");
fail = true;
@@ -88,7 +88,7 @@
fail = false;
#endif
if (fail != false)
- atf_tc_fail("AI_V4MAPPED not defined");
+ atf_tc_fail_nonfatal("AI_V4MAPPED not defined");
fail = true;
@@ -96,7 +96,7 @@
fail = false;
#endif
if (fail != false)
- atf_tc_fail("AI_ALL not defined");
+ atf_tc_fail_nonfatal("AI_ALL not defined");
fail = true;
@@ -104,7 +104,7 @@
fail = false;
#endif
if (fail != false)
- atf_tc_fail("AI_ADDRCONFIG not defined");
+ atf_tc_fail_nonfatal("AI_ADDRCONFIG not defined");
fail = true;
@@ -112,7 +112,7 @@
fail = false;
#endif
if (fail != false)
- atf_tc_fail("NI_NOFQDN not defined");
+ atf_tc_fail_nonfatal("NI_NOFQDN not defined");
fail = true;
@@ -120,7 +120,7 @@
fail = false;
#endif
if (fail != false)
- atf_tc_fail("NI_NUMERICHOST not defined");
+ atf_tc_fail_nonfatal("NI_NUMERICHOST not defined");
fail = true;
@@ -128,7 +128,7 @@
fail = false;
#endif
if (fail != false)
- atf_tc_fail("NI_NAMEREQD not defined");
+ atf_tc_fail_nonfatal("NI_NAMEREQD not defined");
fail = true;
@@ -136,7 +136,7 @@
fail = false;
#endif
if (fail != false)
- atf_tc_fail("NI_NUMERICSERV not defined");
+ atf_tc_fail_nonfatal("NI_NUMERICSERV not defined");
fail = true;
@@ -144,7 +144,7 @@
fail = false;
#endif
if (fail != false)
- atf_tc_fail("NI_NUMERICSCOPE not defined");
+ atf_tc_fail_nonfatal("NI_NUMERICSCOPE not defined");
fail = true;
@@ -152,7 +152,7 @@
fail = false;
#endif
if (fail != false)
- atf_tc_fail("NI_DGRAM not defined");
+ atf_tc_fail_nonfatal("NI_DGRAM not defined");
fail = true;
@@ -160,7 +160,7 @@
fail = false;
#endif
if (fail != false)
- atf_tc_fail("EAI_AGAIN not defined");
+ atf_tc_fail_nonfatal("EAI_AGAIN not defined");
fail = true;
@@ -168,7 +168,7 @@
fail = false;
#endif
if (fail != false)
- atf_tc_fail("EAI_BADFLAGS not defined");
+ atf_tc_fail_nonfatal("EAI_BADFLAGS not defined");
fail = true;
@@ -176,7 +176,7 @@
fail = false;
#endif
if (fail != false)
- atf_tc_fail("EAI_FAIL not defined");
+ atf_tc_fail_nonfatal("EAI_FAIL not defined");
fail = true;
@@ -184,7 +184,7 @@
fail = false;
#endif
if (fail != false)
- atf_tc_fail("EAI_FAMILY not defined");
+ atf_tc_fail_nonfatal("EAI_FAMILY not defined");
fail = true;
@@ -192,7 +192,7 @@
fail = false;
#endif
if (fail != false)
- atf_tc_fail("EAI_MEMORY not defined");
+ atf_tc_fail_nonfatal("EAI_MEMORY not defined");
fail = true;
@@ -200,7 +200,7 @@
fail = false;
#endif
if (fail != false)
- atf_tc_fail("EAI_NONAME not defined");
+ atf_tc_fail_nonfatal("EAI_NONAME not defined");
fail = true;
@@ -208,7 +208,7 @@
fail = false;
#endif
if (fail != false)
- atf_tc_fail("EAI_SERVICE not defined");
+ atf_tc_fail_nonfatal("EAI_SERVICE not defined");
fail = true;
@@ -216,7 +216,7 @@
fail = false;
#endif
if (fail != false)
- atf_tc_fail("EAI_SOCKTYPE not defined");
+ atf_tc_fail_nonfatal("EAI_SOCKTYPE not defined");
fail = true;
@@ -224,7 +224,7 @@
fail = false;
#endif
if (fail != false)
- atf_tc_fail("EAI_SYSTEM not defined");
+ atf_tc_fail_nonfatal("EAI_SYSTEM not defined");
fail = true;
@@ -232,7 +232,7 @@
fail = false;
#endif
if (fail != false)
- atf_tc_fail("EAI_OVERFLOW not defined");
+ atf_tc_fail_nonfatal("EAI_OVERFLOW not defined");
}
ATF_TP_ADD_TCS(tp)
Home |
Main Index |
Thread Index |
Old Index