Source-Changes archive

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

CVS commit: src/tests/lib/libc/gen



Module Name:    src
Committed By:   riastradh
Date:           Mon Apr  7 01:54:22 UTC 2025

Modified Files:
        src/tests/lib/libc/gen: t_isnan.c

Log Message:
tests/lib/libc/gen/t_isnan: Fix architecture conditionals.

1. Skip isinf_basic on VAX.  We have no other way to query `does this
   architecture support infinities?' and other tests already use
   isinf(HUGE_VAL) to determine that, so let's just make sure it
   works correctly on VAX.

2. Don't skip these tests on m68k.  This was originally conditional
   on m68000 (which is to say, NetBSD's MACHINE_ARCH for Motorola
   68010 CPUs, i.e., the sun2 port), and was later mistakenly changed
   to m68k.  But there's no reason any m68k, 68010 or later, should
   skip this -- the floating-point format of the ABI does have NaN
   and infinity, whether it's a softfloat ABI or hardfloat ABI.

PR misc/59266: t_isnan:isinf_basic test is bogus on some ports


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/tests/lib/libc/gen/t_isnan.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index