Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/lib/libc/locale Undo previous, Checking for vax is mor...



details:   https://anonhg.NetBSD.org/src/rev/f6ca1bac38ba
branches:  trunk
changeset: 770041:f6ca1bac38ba
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Oct 01 17:56:11 2011 +0000

description:
Undo previous, Checking for vax is more appropriate.

diffstat:

 tests/lib/libc/locale/t_wcstod.c |  20 +++++++++++---------
 1 files changed, 11 insertions(+), 9 deletions(-)

diffs (70 lines):

diff -r 3678163e2697 -r f6ca1bac38ba tests/lib/libc/locale/t_wcstod.c
--- a/tests/lib/libc/locale/t_wcstod.c  Sat Oct 01 17:54:13 2011 +0000
+++ b/tests/lib/libc/locale/t_wcstod.c  Sat Oct 01 17:56:11 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_wcstod.c,v 1.2 2011/10/01 17:54:13 christos Exp $ */
+/* $NetBSD: t_wcstod.c,v 1.3 2011/10/01 17:56:11 christos Exp $ */
 
 /*-
  * Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -56,14 +56,13 @@
 #include <sys/cdefs.h>
 __COPYRIGHT("@(#) Copyright (c) 2011\
  The NetBSD Foundation, inc. All rights reserved.");
-__RCSID("$NetBSD: t_wcstod.c,v 1.2 2011/10/01 17:54:13 christos Exp $");
+__RCSID("$NetBSD: t_wcstod.c,v 1.3 2011/10/01 17:56:11 christos Exp $");
 
 #include <errno.h>
 #include <math.h>
 #include <stdlib.h>
 #include <string.h>
 #include <wchar.h>
-#include <float.h>
 
 #include <atf-c.h>
 
@@ -71,7 +70,7 @@
 #define        ALT_MINUS_HUGE_VAL      -2
 #define        ALT_NAN                 -3
 
-#ifdef _FLOAT_IEEE754
+#if !defined(__vax__)
 static struct test {
        const wchar_t *wcs;
        size_t len;
@@ -383,7 +382,7 @@
 
 { NULL, 0, 0, 0 }
 };
-#endif /* defined(_FLOAT_IEEE754) */
+#endif /* !defined(__vax__) */
 
 ATF_TC(wcstod);
 ATF_TC_HEAD(wcstod, tc)
@@ -392,9 +391,12 @@
 }
 ATF_TC_BODY(wcstod, tc)
 {
-#ifdef _FLOAT_IEEE754
+#if defined(__vax__)
+#else
        struct test *t;
+#endif
 
+#if !defined(__vax__)
        for (t = &tests[0]; t->wcs != NULL; ++t) {
                double d;
                size_t n;
@@ -441,9 +443,9 @@
 
                (void)printf("\n");
        }
-#else /* !_FLOAT_IEEE754 */
-       atf_tc_skip("Test is unavailable on this architecture.");
-#endif /* _FLOAT_IEEE754 */
+#else /* !defined(__vax__) */
+       atf_tc_skip("Test is unavailable on vax.");
+#endif /* !defined(__vax__) */
 }
 
 ATF_TP_ADD_TCS(tp)



Home | Main Index | Thread Index | Old Index