Module Name: src Committed By: riastradh Date: Wed May 8 20:04:33 UTC 2024
Modified Files: src/tests/lib/libc/stdio: t_printf.c Log Message: tests/lib/libc/stdio/t_printf: Fix %La test. 0xa.99ap+0 is closer to (long double)10.6 in x86 ld80 and in binary128 (and possibly more formats, haven't verified). To generate a diff of this commit: cvs rdiff -u -r1.11 -r1.12 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.11 src/tests/lib/libc/stdio/t_printf.c:1.12 --- src/tests/lib/libc/stdio/t_printf.c:1.11 Wed May 8 18:19:57 2024 +++ src/tests/lib/libc/stdio/t_printf.c Wed May 8 20:04:33 2024 @@ -1,4 +1,4 @@ -/* $NetBSD: t_printf.c,v 1.11 2024/05/08 18:19:57 riastradh Exp $ */ +/* $NetBSD: t_printf.c,v 1.12 2024/05/08 20:04:33 riastradh Exp $ */ /*- * Copyright (c) 2010 The NetBSD Foundation, Inc. @@ -224,7 +224,7 @@ ATF_TC_BODY(snprintf_long_double_a, tc) ATF_CHECK_MSG((strcmp(buf, "0x1.533p+3") == 0 || strcmp(buf, "0x2.a66p+2") == 0 || strcmp(buf, "0x5.4ccp+1") == 0 || - strcmp(buf, "0xa.998p+0") == 0), + strcmp(buf, "0xa.99ap+0") == 0), "buf=%s", buf); snprintf(buf, sizeof buf, "%La", 0.125L);