Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/lib/libc/stdlib Add -ffloat-store add test lib/45020 a...
details: https://anonhg.NetBSD.org/src/rev/8ddd7946ba27
branches: trunk
changeset: 765736:8ddd7946ba27
user: jruoho <jruoho%NetBSD.org@localhost>
date: Sat Jun 04 11:12:28 2011 +0000
description:
Add -ffloat-store add test lib/45020 also with __isnanl().
diffstat:
tests/lib/libc/stdlib/Makefile | 4 +++-
tests/lib/libc/stdlib/t_strtod.c | 5 +++--
2 files changed, 6 insertions(+), 3 deletions(-)
diffs (42 lines):
diff -r 3356b06e0d57 -r 8ddd7946ba27 tests/lib/libc/stdlib/Makefile
--- a/tests/lib/libc/stdlib/Makefile Sat Jun 04 10:16:59 2011 +0000
+++ b/tests/lib/libc/stdlib/Makefile Sat Jun 04 11:12:28 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.12 2011/05/09 07:31:51 jruoho Exp $
+# $NetBSD: Makefile,v 1.13 2011/06/04 11:12:28 jruoho Exp $
.include <bsd.own.mk>
@@ -26,4 +26,6 @@
LDADD.t_strtod= -lm
LDADD.t_environment_pth= -pthread
+COPTS+= -ffloat-store
+
.include <bsd.test.mk>
diff -r 3356b06e0d57 -r 8ddd7946ba27 tests/lib/libc/stdlib/t_strtod.c
--- a/tests/lib/libc/stdlib/t_strtod.c Sat Jun 04 10:16:59 2011 +0000
+++ b/tests/lib/libc/stdlib/t_strtod.c Sat Jun 04 11:12:28 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_strtod.c,v 1.14 2011/06/04 10:16:59 jruoho Exp $ */
+/* $NetBSD: t_strtod.c,v 1.15 2011/06/04 11:12:28 jruoho Exp $ */
/*-
* Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -32,7 +32,7 @@
/* Public domain, Otto Moerbeek <otto%drijf.net@localhost>, 2006. */
#include <sys/cdefs.h>
-__RCSID("$NetBSD: t_strtod.c,v 1.14 2011/06/04 10:16:59 jruoho Exp $");
+__RCSID("$NetBSD: t_strtod.c,v 1.15 2011/06/04 11:12:28 jruoho Exp $");
#include <errno.h>
#include <math.h>
@@ -170,6 +170,7 @@
ld = strtold(str, &end);
ATF_REQUIRE(isnan(ld) != 0);
+ ATF_REQUIRE(__isnanl(ld) != 0);
ATF_REQUIRE(strcmp(end, "y") == 0);
#endif
Home |
Main Index |
Thread Index |
Old Index