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-alpha/46301 when failing on ...



details:   https://anonhg.NetBSD.org/src/rev/81f17648a3ba
branches:  trunk
changeset: 778593:81f17648a3ba
user:      jruoho <jruoho%NetBSD.org@localhost>
date:      Fri Apr 06 08:07:32 2012 +0000

description:
Point to PR port-alpha/46301 when failing on Alpha.

diffstat:

 tests/lib/libm/t_log.c |  21 ++++++++++++++++++---
 1 files changed, 18 insertions(+), 3 deletions(-)

diffs (66 lines):

diff -r 2aac6b3a4023 -r 81f17648a3ba tests/lib/libm/t_log.c
--- a/tests/lib/libm/t_log.c    Fri Apr 06 07:53:10 2012 +0000
+++ b/tests/lib/libm/t_log.c    Fri Apr 06 08:07:32 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_log.c,v 1.6 2012/02/05 17:52:55 matt Exp $ */
+/* $NetBSD: t_log.c,v 1.7 2012/04/06 08:07:32 jruoho Exp $ */
 
 /*-
  * Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -29,11 +29,14 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: t_log.c,v 1.6 2012/02/05 17:52:55 matt Exp $");
+__RCSID("$NetBSD: t_log.c,v 1.7 2012/04/06 08:07:32 jruoho Exp $");
 
 #include <atf-c.h>
+#include <atf-c/config.h>
+
+#include <math.h>
 #include <stdio.h>
-#include <math.h>
+#include <string.h>
 
 /*
  * log10(3)
@@ -201,6 +204,9 @@
 #ifndef __vax__
        const float x = 1.0L / 0.0L;
 
+       if (strcmp(atf_config_get("atf_arch"), "alpha") == 0)
+               atf_tc_expect_fail("PR port-alpha/46301");
+
        ATF_CHECK(log10f(x) == x);
 #endif
 }
@@ -403,6 +409,9 @@
 #ifndef __vax__
        const float x = 1.0L / 0.0L;
 
+       if (strcmp(atf_config_get("atf_arch"), "alpha") == 0)
+               atf_tc_expect_fail("PR port-alpha/46301");
+
        ATF_CHECK(log1pf(x) == x);
 #endif
 }
@@ -621,6 +630,9 @@
 #ifndef __vax__
        const float x = 1.0L / 0.0L;
 
+       if (strcmp(atf_config_get("atf_arch"), "alpha") == 0)
+               atf_tc_expect_fail("PR port-alpha/46301");
+
        ATF_CHECK(log2f(x) == x);
 #endif
 }
@@ -845,6 +857,9 @@
 #ifndef __vax__
        const float x = 1.0L / 0.0L;
 
+       if (strcmp(atf_config_get("atf_arch"), "alpha") == 0)
+               atf_tc_expect_fail("PR port-alpha/46301");
+
        ATF_CHECK(logf(x) == x);
 #endif
 }



Home | Main Index | Thread Index | Old Index