NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

port-vax/59262: t_printf:pr57250_fix is faliing



>Number:         59262
>Category:       port-vax
>Synopsis:       t_printf:pr57250_fix is faliing
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-vax-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Apr 07 00:20:00 +0000 2025
>Originator:     Taylor R Campbell
>Release:        current
>Organization:
The VaxBSD Inprintfity
>Environment:
>Description:
Termination reason

FAILED: /tmp/build/2025.04.04.21.52.19-vax/src/tests/lib/libc/stdio/t_printf.c:285: buf != "inf\n" (170141183460469229370504062281061498880.000000<<NEWLINE UNEXPECTED>> != inf<<NEWLINE UNEXPECTED>>)
Standard error stream

*** Check failed: /tmp/build/2025.04.04.21.52.19-vax/src/tests/lib/libc/stdio/t_printf.c:283: isfinite(ld) == 0 not met
>How-To-Repeat:
cd /usr/tests/lib/libc/stdio
atf-run t_printf | atf-report
>Fix:
1. Instead of hard-coding 1e309, use snprintf(..., "1e%d", LDBL_MAX_EXP + 1), and nix the #ifndef WIDE_DOUBLE around the test since it's no longer necessary.
2. Make the isfinite check conditional on isinf(HUGE_VAL), which is false on VAX because VAX doesn't have infinities.
3. On VAX, verify that the result is DBL_MAX.



Home | Main Index | Thread Index | Old Index