Branch
Hash :
30d5b101
Author :
Date :
2024-04-18T01:34:02
totalorder* tests: Strengthen tests. * tests/test-totalorder.h: Include <math.h>. (positive_NaN_with_payload, negative_NaN_with_payload): New functions. (main): Test quiet NaNs of each sign with different payload. * tests/test-totalorder.c (TOTALORDER_POSITIVE_NAN, TOTALORDER_NEGATIVE_NAN): Remove macros. (TOTALORDER_SETPAYLOAD): New macro. * tests/test-totalorderf.c (TOTALORDER_POSITIVE_NAN, TOTALORDER_NEGATIVE_NAN): Remove macros. (TOTALORDER_SETPAYLOAD): New macro. * tests/test-totalorderl.c (TOTALORDER_POSITIVE_NAN, TOTALORDER_NEGATIVE_NAN): Remove macros. (TOTALORDER_SETPAYLOAD): New macro. * modules/totalorder-tests (Depends-on): Add setpayload. (Makefile.am): Link test-totalorder with $(SETPAYLOAD_LIBM). * modules/totalorderf-tests (Depends-on): Add setpayloadf. (Makefile.am): Link test-totalorderf with $(SETPAYLOADF_LIBM). * modules/totalorderl-tests (Depends-on): Add setpayloadl. (Makefile.am): Link test-totalorderl with $(SETPAYLOADL_LIBM).
Files:
tests/test-totalorderl.c
tests/test-totalorder.h
tests/minus-zero.h
tests/infinity.h
tests/signature.h
tests/macros.h
Depends-on:
signed-nan
signed-snan
setpayloadl
configure.ac:
Makefile.am:
TESTS += test-totalorderl
check_PROGRAMS += test-totalorderl
test_totalorderl_LDADD = $(LDADD) @TOTALORDERL_LIBM@ $(SETPAYLOADL_LIBM)