Module Name:    src
Committed By:   jruoho
Date:           Sat Jun  4 11:12:29 UTC 2011

Modified Files:
        src/tests/lib/libc/stdlib: Makefile t_strtod.c

Log Message:
Add -ffloat-store add test lib/45020 also with __isnanl().


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/tests/lib/libc/stdlib/Makefile
cvs rdiff -u -r1.14 -r1.15 src/tests/lib/libc/stdlib/t_strtod.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/tests/lib/libc/stdlib/Makefile
diff -u src/tests/lib/libc/stdlib/Makefile:1.12 src/tests/lib/libc/stdlib/Makefile:1.13
--- src/tests/lib/libc/stdlib/Makefile:1.12	Mon May  9 07:31:51 2011
+++ src/tests/lib/libc/stdlib/Makefile	Sat Jun  4 11:12:28 2011
@@ -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>

Index: src/tests/lib/libc/stdlib/t_strtod.c
diff -u src/tests/lib/libc/stdlib/t_strtod.c:1.14 src/tests/lib/libc/stdlib/t_strtod.c:1.15
--- src/tests/lib/libc/stdlib/t_strtod.c:1.14	Sat Jun  4 10:16:59 2011
+++ src/tests/lib/libc/stdlib/t_strtod.c	Sat Jun  4 11:12:28 2011
@@ -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 <o...@drijf.net>, 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

Reply via email to