Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/include Remove the ATF_CHECK calls I added during the ...
details: https://anonhg.NetBSD.org/src/rev/d6b47d42a71c
branches: trunk
changeset: 756457:d6b47d42a71c
user: jmmv <jmmv%NetBSD.org@localhost>
date: Sun Jul 18 12:16:19 2010 +0000
description:
Remove the ATF_CHECK calls I added during the conversion of this test to
atf. They break on i386 (because the test was conceptually broken anyway);
reported by pooka@ in private mail.
Now... the current test does not actually check anything AFAICT... but this
is how it was before.
diffstat:
tests/include/t_inttypes.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diffs (41 lines):
diff -r ab06c0c4b90f -r d6b47d42a71c tests/include/t_inttypes.c
--- a/tests/include/t_inttypes.c Sun Jul 18 11:28:22 2010 +0000
+++ b/tests/include/t_inttypes.c Sun Jul 18 12:16:19 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_inttypes.c,v 1.1 2010/07/17 19:26:27 jmmv Exp $ */
+/* $NetBSD: t_inttypes.c,v 1.2 2010/07/18 12:16:19 jmmv Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -32,8 +32,8 @@
#include <atf-c.h>
-ATF_TC_WITHOUT_HEAD(fmt_io);
-ATF_TC_BODY(fmt_io, tc)
+ATF_TC_WITHOUT_HEAD(int_fmtio);
+ATF_TC_BODY(int_fmtio, tc)
{
char buf[64];
@@ -67,9 +67,9 @@
uintptr_t uip;
#define PRINT(fmt, var) \
- ATF_CHECK(snprintf(buf, sizeof(buf), "%" fmt, var) > 0)
+ snprintf(buf, sizeof(buf), "%" fmt, var)
#define SCAN(fmt, var) \
- ATF_CHECK(sscanf(buf, "%" fmt, &var) > 0)
+ sscanf(buf, "%" fmt, &var)
PRINT(PRId8, i8);
PRINT(PRId16, i16);
@@ -244,7 +244,7 @@
ATF_TP_ADD_TCS(tp)
{
- ATF_TP_ADD_TC(tp, fmt_io);
+ ATF_TP_ADD_TC(tp, int_fmtio);
return atf_no_error();
}
Home |
Main Index |
Thread Index |
Old Index