Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/lib/libc/stdio Fix the test for "inf" output, also inc...
details: https://anonhg.NetBSD.org/src/rev/289215c28fc1
branches: trunk
changeset: 374156:289215c28fc1
user: he <he%NetBSD.org@localhost>
date: Tue Apr 04 19:39:38 2023 +0000
description:
Fix the test for "inf" output, also include newline in printf format...
diffstat:
tests/lib/libc/stdio/t_printf.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 01681c5ed665 -r 289215c28fc1 tests/lib/libc/stdio/t_printf.c
--- a/tests/lib/libc/stdio/t_printf.c Tue Apr 04 19:30:11 2023 +0000
+++ b/tests/lib/libc/stdio/t_printf.c Tue Apr 04 19:39:38 2023 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_printf.c,v 1.9 2023/04/04 19:30:11 christos Exp $ */
+/* $NetBSD: t_printf.c,v 1.10 2023/04/04 19:39:38 he Exp $ */
/*-
* Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -219,7 +219,7 @@ ATF_TC_BODY(pr57250_fix, tc)
ld = (double)ld;
ATF_CHECK(isfinite(ld) == 0);
snprintf(buf, sizeof buf, "%Lf\n", ld);
- ATF_REQUIRE_STREQ(buf, "inf");
+ ATF_REQUIRE_STREQ(buf, "inf\n");
}
#endif
Home |
Main Index |
Thread Index |
Old Index