freebsd-skq/lib/libc/tests/stdlib
Mitchell Horne 2d143336de Enable long double tests on RISC-V
Some of the NetBSD contributed tests are gated behind the
__HAVE_LONG_DOUBLE flag. This flag seems to be defined only for
platforms whose long double is larger than their double. I could not
find this explicitly documented anywhere, but it is implied by the
definitions in NetBSD's sys/arch/${arch}/include/math.h headers, and the
following assertion from the UBSAN code:

  #ifdef __HAVE_LONG_DOUBLE
      long double LD;
      ASSERT(sizeof(LD) > sizeof(uint64_t));
  #endif

RISC-V has 128-bit long doubles, so enable the tests on this platform,
and update the comments to better explain the purpose of this flag.

Reviewed by:	ngie
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D25419
2020-06-24 13:11:19 +00:00
..
dynthr_mod libc/tests: Add test case for jemalloc/libthr bug fixed in r343566 2019-01-31 02:49:24 +00:00
cxa_thread_atexit_nothr_test.cc
cxa_thread_atexit_test.cc
dynthr_test.c libc/tests: Add test case for jemalloc/libthr bug fixed in r343566 2019-01-31 02:49:24 +00:00
heapsort_test.c
Makefile Enable long double tests on RISC-V 2020-06-24 13:11:19 +00:00
Makefile.depend
mergesort_test.c
qsort_r_test.c Add qsort_r(3) regression test. 2020-01-20 11:45:18 +00:00
qsort_s_test.c Add qsort_s(3). Apart from the constraints, it also makes it easier 2020-01-20 11:40:07 +00:00
qsort_test.c
set_constraint_handler_s_test.c
strfmon_test.c Allow multi-byte thousands separators in strfmon(3) 2018-12-19 22:57:47 +00:00
test-sort.h
tsearch_test.c