Module Name: src Committed By: he Date: Tue Apr 4 19:39:38 UTC 2023
Modified Files: src/tests/lib/libc/stdio: t_printf.c Log Message: Fix the test for "inf" output, also include newline in printf format... To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.10 src/tests/lib/libc/stdio/t_printf.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/lib/libc/stdio/t_printf.c diff -u src/tests/lib/libc/stdio/t_printf.c:1.9 src/tests/lib/libc/stdio/t_printf.c:1.10 --- src/tests/lib/libc/stdio/t_printf.c:1.9 Tue Apr 4 19:30:11 2023 +++ src/tests/lib/libc/stdio/t_printf.c Tue Apr 4 19:39:38 2023 @@ -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