svn commit: r273023 - head/contrib/netbsd-tests/lib/libc/stdlib
Garrett Cooper
ngie at FreeBSD.org
Mon Oct 13 02:32:38 UTC 2014
Author: ngie
Date: Mon Oct 13 02:32:37 2014
New Revision: 273023
URL: https://svnweb.freebsd.org/changeset/base/273023
Log:
__isnanl is automatically picked according to data type in <math.h>. There
isn't a need for the explicit __isnanl test
Sponsored by: EMC / Isilon Storage Division
Modified:
head/contrib/netbsd-tests/lib/libc/stdlib/t_strtod.c
Modified: head/contrib/netbsd-tests/lib/libc/stdlib/t_strtod.c
==============================================================================
--- head/contrib/netbsd-tests/lib/libc/stdlib/t_strtod.c Mon Oct 13 02:29:58 2014 (r273022)
+++ head/contrib/netbsd-tests/lib/libc/stdlib/t_strtod.c Mon Oct 13 02:32:37 2014 (r273023)
@@ -221,7 +221,9 @@ ATF_TC_BODY(strtold_nan, tc)
volatile long double ld = strtold(nan_string, &end);
ATF_REQUIRE(isnan(ld) != 0);
+#if !defined(__FreeBSD__)
ATF_REQUIRE(__isnanl(ld) != 0);
+#endif
ATF_REQUIRE(strcmp(end, "y") == 0);
# else
atf_tc_skip("Requires long double support");
More information about the svn-src-all
mailing list