Module Name: src Committed By: jmmv Date: Sun Jul 18 12:16:20 UTC 2010
Modified Files: src/tests/include: t_inttypes.c Log Message: 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. To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/tests/include/t_inttypes.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/tests/include/t_inttypes.c diff -u src/tests/include/t_inttypes.c:1.1 src/tests/include/t_inttypes.c:1.2 --- src/tests/include/t_inttypes.c:1.1 Sat Jul 17 19:26:27 2010 +++ src/tests/include/t_inttypes.c Sun Jul 18 12:16:19 2010 @@ -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(); }