opnsense-src/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 Add __cxa_thread_atexit(3) API implementation. 2016-08-06 13:32:40 +00:00
cxa_thread_atexit_test.cc Add __cxa_thread_atexit(3) API implementation. 2016-08-06 13:32:40 +00:00
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 Integrate tools/regression/lib/libc/stdlib into the FreeBSD test suite 2015-11-08 07:03:17 +00:00
Makefile Enable long double tests on RISC-V 2020-06-24 13:11:19 +00:00
Makefile.depend DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
mergesort_test.c Integrate tools/regression/lib/libc/stdlib into the FreeBSD test suite 2015-11-08 07:03:17 +00:00
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 Integrate tools/regression/lib/libc/stdlib into the FreeBSD test suite 2015-11-08 07:03:17 +00:00
set_constraint_handler_s_test.c Implement the memset_s(3) function as specified by the C11 ISO/IEC 2017-03-30 04:57:26 +00:00
strfmon_test.c Allow multi-byte thousands separators in strfmon(3) 2018-12-19 22:57:47 +00:00
test-sort.h Integrate tools/regression/lib/libc/stdlib into the FreeBSD test suite 2015-11-08 07:03:17 +00:00
tsearch_test.c tsearch_test: Test twalk & add some determinism. 2017-06-06 03:40:45 +00:00