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).
This commit is contained in:
riastradh 2024-05-08 20:04:33 +00:00
parent 5c6dfe9899
commit 1076b20b39
1 changed files with 2 additions and 2 deletions

View File

@ -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);