diff options
author | ngie <ngie@FreeBSD.org> | 2014-10-13 02:32:37 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2014-10-13 02:32:37 +0000 |
commit | 18628d06309cff733d706f08f4013615cc6bcc17 (patch) | |
tree | 0e721dfa22e41bdcd127e78a5538ce18648b4d81 /contrib/netbsd-tests/lib/libc/stdlib | |
parent | fbee57a2afc0f921e0cbf4c9dda8861722f0ac06 (diff) | |
download | FreeBSD-src-18628d06309cff733d706f08f4013615cc6bcc17.zip FreeBSD-src-18628d06309cff733d706f08f4013615cc6bcc17.tar.gz |
__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
Diffstat (limited to 'contrib/netbsd-tests/lib/libc/stdlib')
-rw-r--r-- | contrib/netbsd-tests/lib/libc/stdlib/t_strtod.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/contrib/netbsd-tests/lib/libc/stdlib/t_strtod.c b/contrib/netbsd-tests/lib/libc/stdlib/t_strtod.c index d7ebe1b..d11e6f0 100644 --- a/contrib/netbsd-tests/lib/libc/stdlib/t_strtod.c +++ b/contrib/netbsd-tests/lib/libc/stdlib/t_strtod.c @@ -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"); |