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 no more ifdef vax



details:   https://anonhg.NetBSD.org/src/rev/3678163e2697
branches:  trunk
changeset: 770040:3678163e2697
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Oct 01 17:54:13 2011 +0000

description:
no more ifdef vax

diffstat:

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

diffs (70 lines):

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



Home | Main Index | Thread Index | Old Index