Source-Changes-HG archive

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

[src/trunk]: src/tests/lib/libm Point to PR port-i386/46108 when failing on i...



details:   https://anonhg.NetBSD.org/src/rev/7e3a581dbfda
branches:  trunk
changeset: 777943:7e3a581dbfda
user:      jruoho <jruoho%NetBSD.org@localhost>
date:      Sat Mar 10 20:11:01 2012 +0000

description:
Point to PR port-i386/46108 when failing on i386.

diffstat:

 tests/lib/libm/t_atan.c |  13 ++++++++++++-
 1 files changed, 12 insertions(+), 1 deletions(-)

diffs (49 lines):

diff -r 983917a736d5 -r 7e3a581dbfda tests/lib/libm/t_atan.c
--- a/tests/lib/libm/t_atan.c   Sat Mar 10 19:59:21 2012 +0000
+++ b/tests/lib/libm/t_atan.c   Sat Mar 10 20:11:01 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_atan.c,v 1.3 2012/02/28 08:58:39 pgoyette Exp $ */
+/* $NetBSD: t_atan.c,v 1.4 2012/03/10 20:11:01 jruoho Exp $ */
 
 /*-
  * Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -30,7 +30,9 @@
  */
 
 #include <atf-c.h>
+#include <atf-c/config.h>
 #include <math.h>
+#include <string.h>
 
 /*
  * atan(3)
@@ -63,6 +65,9 @@
        const double x = -1.0L / 0.0L;
        const double eps = 1.0e-40;
 
+       if (strcmp(atf_config_get("atf_arch"), "i386") == 0)
+               atf_tc_expect_fail("PR port-i386/46108");
+
        if (fabs(atan(x) + M_PI_2) > eps)
                atf_tc_fail_nonfatal("atan(-Inf) != -pi/2");
 #endif
@@ -80,6 +85,9 @@
        const double x = +1.0L / 0.0L;
        const double eps = 1.0e-40;
 
+       if (strcmp(atf_config_get("atf_arch"), "i386") == 0)
+               atf_tc_expect_fail("PR port-i386/46108");
+
        if (fabs(atan(x) - M_PI_2) > eps)
                atf_tc_fail_nonfatal("atan(+Inf) != pi/2");
 #endif
@@ -99,6 +107,9 @@
        double y;
        size_t i;
 
+       if (strcmp(atf_config_get("atf_arch"), "i386") == 0)
+               atf_tc_expect_fail("PR port-i386/46108");
+
        for (i = 0; i < __arraycount(x); i++) {
 
                y = atan(tan(x[i]));



Home | Main Index | Thread Index | Old Index