Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/lib/libm When failing, point to the tracker PR lib/45362.
details: https://anonhg.NetBSD.org/src/rev/09b75a2d3074
branches: trunk
changeset: 769516:09b75a2d3074
user: jruoho <jruoho%NetBSD.org@localhost>
date: Tue Sep 13 04:24:30 2011 +0000
description:
When failing, point to the tracker PR lib/45362.
diffstat:
tests/lib/libm/t_log.c | 24 ++++++++++++++++++------
tests/lib/libm/t_scalbn.c | 9 ++++++---
2 files changed, 24 insertions(+), 9 deletions(-)
diffs (96 lines):
diff -r 6b55770e7ea1 -r 09b75a2d3074 tests/lib/libm/t_log.c
--- a/tests/lib/libm/t_log.c Mon Sep 12 22:55:53 2011 +0000
+++ b/tests/lib/libm/t_log.c Tue Sep 13 04:24:30 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_log.c,v 1.3 2011/09/12 18:07:29 jruoho Exp $ */
+/* $NetBSD: t_log.c,v 1.4 2011/09/13 04:24:30 jruoho Exp $ */
/*-
* Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: t_log.c,v 1.3 2011/09/12 18:07:29 jruoho Exp $");
+__RCSID("$NetBSD: t_log.c,v 1.4 2011/09/13 04:24:30 jruoho Exp $");
#include <atf-c.h>
#include <stdio.h>
@@ -262,7 +262,10 @@
const double x = -1.0L / 0.0L;
const double y = log1p(x);
- ATF_CHECK(isnan(y) != 0);
+ if (isnan(y) == 0) {
+ atf_tc_expect_fail("PR lib/45362");
+ atf_tc_fail("log1p(-Inf) != NaN");
+ }
#endif
}
@@ -292,7 +295,10 @@
#ifndef __vax__
const double x = log1p(-1.0);
- ATF_CHECK(x == -HUGE_VAL);
+ if (x != -HUGE_VAL) {
+ atf_tc_expect_fail("PR lib/45362");
+ atf_tc_fail("log1p(-1.0) != -HUGE_VAL");
+ }
#endif
}
@@ -357,7 +363,10 @@
const float x = -1.0L / 0.0L;
const float y = log1pf(x);
- ATF_CHECK(isnan(y) != 0);
+ if (isnan(y) == 0) {
+ atf_tc_expect_fail("PR lib/45362");
+ atf_tc_fail("log1pf(-Inf) != NaN");
+ }
#endif
}
@@ -387,7 +396,10 @@
#ifndef __vax__
const float x = log1pf(-1.0);
- ATF_CHECK(x == -HUGE_VALF);
+ if (x != -HUGE_VALF) {
+ atf_tc_expect_fail("PR lib/45362");
+ atf_tc_fail("log1pf(-1.0) != -HUGE_VALF");
+ }
#endif
}
diff -r 6b55770e7ea1 -r 09b75a2d3074 tests/lib/libm/t_scalbn.c
--- a/tests/lib/libm/t_scalbn.c Mon Sep 12 22:55:53 2011 +0000
+++ b/tests/lib/libm/t_scalbn.c Tue Sep 13 04:24:30 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_scalbn.c,v 1.4 2011/09/12 17:45:51 jruoho Exp $ */
+/* $NetBSD: t_scalbn.c,v 1.5 2011/09/13 04:24:30 jruoho 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.4 2011/09/12 17:45:51 jruoho Exp $");
+__RCSID("$NetBSD: t_scalbn.c,v 1.5 2011/09/13 04:24:30 jruoho Exp $");
#include <math.h>
#include <limits.h>
@@ -267,7 +267,10 @@
long double y;
size_t i;
- ATF_REQUIRE(isnan(x) != 0);
+ if (isnan(x) == 0) {
+ atf_tc_expect_fail("PR lib/45362");
+ atf_tc_fail("(0.0L / 0.0L) != NaN");
+ }
for (i = 0; i < __arraycount(exps); i++) {
y = scalbnl(x, exps[i]);
Home |
Main Index |
Thread Index |
Old Index