]> Savannah Git Hosting - gnulib.git/commit
totalorder* tests: Test also the signalling NaNs.
authorBruno Haible <bruno@clisp.org>
Sat, 14 Oct 2023 18:43:47 +0000 (20:43 +0200)
committerBruno Haible <bruno@clisp.org>
Sat, 14 Oct 2023 18:43:47 +0000 (20:43 +0200)
commit57b9775f4a36aadb32bfcc445bfe8038190ca689
treead3634e4db107e5a743aec6b68f8eccc678274dd
parent24bdd76dc1ed9a12791217da1e44389462092978
totalorder* tests: Test also the signalling NaNs.

* tests/test-totalorder.h: Include signed-snan.h.
(main): Change the array initializer to contain memory_* objects rather
than floating-point numbers. This is needed for i386 and x86_64 CPUs.
* tests/test-totalorder.c (TOTALORDER_TYPE): Use memory_double.
(TOTALORDER_HAVE_SNAN, TOTALORDER_POSITIVE_SNAN,
TOTALORDER_NEGATIVE_SNAN): New macros.
* tests/test-totalorderf.c (TOTALORDER_TYPE): Use memory_float.
(TOTALORDER_HAVE_SNAN, TOTALORDER_POSITIVE_SNAN,
TOTALORDER_NEGATIVE_SNAN): New macros.
* tests/test-totalorderl.c (TOTALORDER_TYPE): Use memory_long_double.
(TOTALORDER_HAVE_SNAN, TOTALORDER_POSITIVE_SNAN,
TOTALORDER_NEGATIVE_SNAN): New macros.
* modules/totalorder-tests (Depends-on): Add signed-snan.
* modules/totalorderf-tests (Depends-on): Likewise.
* modules/totalorderl-tests (Depends-on): Likewise.
ChangeLog
modules/totalorder-tests
modules/totalorderf-tests
modules/totalorderl-tests
tests/test-totalorder.c
tests/test-totalorder.h
tests/test-totalorderf.c
tests/test-totalorderl.c