Module Name: src Committed By: christos Date: Sat Oct 1 17:54:13 UTC 2011
Modified Files: src/tests/lib/libc/locale: t_wcstod.c Log Message: no more ifdef vax To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/tests/lib/libc/locale/t_wcstod.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/locale/t_wcstod.c diff -u src/tests/lib/libc/locale/t_wcstod.c:1.1 src/tests/lib/libc/locale/t_wcstod.c:1.2 --- src/tests/lib/libc/locale/t_wcstod.c:1.1 Sat Apr 9 13:45:25 2011 +++ src/tests/lib/libc/locale/t_wcstod.c Sat Oct 1 13:54:13 2011 @@ -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 @@ __RCSID("$NetBSD: t_wcstod.c,v 1.1 2011/ #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 @@ static struct test { { 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_HEAD(wcstod, tc) } 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 @@ ATF_TC_BODY(wcstod, tc) (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)