Source-Changes-HG archive

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

[src/trunk]: src/tests/lib/libm vaxinate the new tests.



details:   https://anonhg.NetBSD.org/src/rev/c1ce4837161a
branches:  trunk
changeset: 786937:c1ce4837161a
user:      christos <christos%NetBSD.org@localhost>
date:      Thu May 23 20:45:47 2013 +0000

description:
vaxinate the new tests.

diffstat:

 tests/lib/libm/t_scalbn.c |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (50 lines):

diff -r 70c0fb4371e1 -r c1ce4837161a tests/lib/libm/t_scalbn.c
--- a/tests/lib/libm/t_scalbn.c Thu May 23 16:49:46 2013 +0000
+++ b/tests/lib/libm/t_scalbn.c Thu May 23 20:45:47 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_scalbn.c,v 1.8 2013/05/20 12:21:42 martin Exp $ */
+/* $NetBSD: t_scalbn.c,v 1.9 2013/05/23 20:45:47 christos Exp $ */
 
 /*-
  * Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: t_scalbn.c,v 1.8 2013/05/20 12:21:42 martin Exp $");
+__RCSID("$NetBSD: t_scalbn.c,v 1.9 2013/05/23 20:45:47 christos Exp $");
 
 #include <math.h>
 #include <limits.h>
@@ -75,6 +75,7 @@
 
 ATF_TC_BODY(scalbn_val, tc)
 {
+#ifndef __vax__
        const struct testcase *tests = test_vals;
        const size_t tcnt = __arraycount(test_vals);
        size_t i;
@@ -89,6 +90,7 @@
                    "test %zu: return value %g instead of %g (difference %g)",
                    i, rv, tests[i].result, tests[i].result-rv);
        }
+#endif
 }
 
 ATF_TC(scalbn_nan);
@@ -228,6 +230,7 @@
 
 ATF_TC_BODY(scalbnf_val, tc)
 {
+#ifndef __vax__
        const struct testcase *tests = test_vals;
        const size_t tcnt = __arraycount(test_vals);
        size_t i;
@@ -242,6 +245,7 @@
                    "test %zu: return value %g instead of %g (difference %g)",
                    i, rv, tests[i].result, tests[i].result-rv);
        }
+#endif
 }
 
 ATF_TC(scalbnf_nan);



Home | Main Index | Thread Index | Old Index