Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 31 Aug 2019 20:45:46 +0000 (UTC)
From:      Li-Wen Hsu <lwhsu@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r351648 - in head/lib: libc/tests/stdlib msun/tests
Message-ID:  <201908312045.x7VKjk4c062516@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: lwhsu
Date: Sat Aug 31 20:45:45 2019
New Revision: 351648
URL: https://svnweb.freebsd.org/changeset/base/351648

Log:
  Unskip test cases from netbsd-tests by defining __HAVE_FENV
  
  This unskips:
    - lib.libc.stdlib.strtod_test.strtod_round
    - lib.msun.fe_round_test.t_nofe_round
  
  In lib/msun/tests/Makefile only define on fe_round_test.c because
  lib.msun.ilogb_test.ilogb will get wrong results and needs more examination.
  
  MFC after:	1 week
  Sponsored by:	The FreeBSD Foundation

Modified:
  head/lib/libc/tests/stdlib/Makefile
  head/lib/msun/tests/Makefile

Modified: head/lib/libc/tests/stdlib/Makefile
==============================================================================
--- head/lib/libc/tests/stdlib/Makefile	Sat Aug 31 18:04:33 2019	(r351647)
+++ head/lib/libc/tests/stdlib/Makefile	Sat Aug 31 20:45:45 2019	(r351648)
@@ -14,6 +14,9 @@ ATF_TESTS_CXX+=		cxa_thread_atexit_test
 ATF_TESTS_CXX+=		cxa_thread_atexit_nothr_test
 .endif
 
+# All architectures on FreeBSD have fenv.h
+CFLAGS+=	-D__HAVE_FENV
+
 # Not sure why this isn't defined for all architectures, since most
 # have long double.
 .if ${MACHINE_CPUARCH} == "aarch64" || \

Modified: head/lib/msun/tests/Makefile
==============================================================================
--- head/lib/msun/tests/Makefile	Sat Aug 31 18:04:33 2019	(r351647)
+++ head/lib/msun/tests/Makefile	Sat Aug 31 20:45:45 2019	(r351648)
@@ -99,6 +99,8 @@ ARCH_SUBDIR= ${MACHINE_CPUARCH}
 # precision is.
 CFLAGS+=	-DLDBL_PREC=${LDBL_PREC}
 
+CFLAGS.fe_round_test+=	-D__HAVE_FENV
+
 .include <netbsd-tests.test.mk>
 
 .include <bsd.test.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201908312045.x7VKjk4c062516>