Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/lib/libm As couple of checks fails on i386/qemu, reduc...
details: https://anonhg.NetBSD.org/src/rev/526d8e82cd85
branches: trunk
changeset: 770426:526d8e82cd85
user: jruoho <jruoho%NetBSD.org@localhost>
date: Sun Oct 16 13:42:22 2011 +0000
description:
As couple of checks fails on i386/qemu, reduce tolerance.
diffstat:
tests/lib/libm/Makefile | 7 ++++++-
tests/lib/libm/t_cosh.c | 6 +++---
tests/lib/libm/t_sinh.c | 8 ++++----
3 files changed, 13 insertions(+), 8 deletions(-)
diffs (89 lines):
diff -r 97b749a0055d -r 526d8e82cd85 tests/lib/libm/Makefile
--- a/tests/lib/libm/Makefile Sun Oct 16 12:41:45 2011 +0000
+++ b/tests/lib/libm/Makefile Sun Oct 16 13:42:22 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.15 2011/10/16 08:25:55 jruoho Exp $
+# $NetBSD: Makefile,v 1.16 2011/10/16 13:42:22 jruoho Exp $
.include <bsd.own.mk>
@@ -17,6 +17,7 @@
TESTS_C+= t_ldexp
TESTS_C+= t_log
TESTS_C+= t_pow
+TESTS_C+= t_rint
TESTS_C+= t_round
TESTS_C+= t_scalbn
TESTS_C+= t_sin
@@ -28,4 +29,8 @@
LDADD+= -lm
#COPTS+= -Wfloat-equal
+.if ${MACHINE_ARCH} == "alpha"
+COPTS+= -mieee
+.endif
+
.include <bsd.test.mk>
diff -r 97b749a0055d -r 526d8e82cd85 tests/lib/libm/t_cosh.c
--- a/tests/lib/libm/t_cosh.c Sun Oct 16 12:41:45 2011 +0000
+++ b/tests/lib/libm/t_cosh.c Sun Oct 16 13:42:22 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_cosh.c,v 1.1 2011/10/16 07:40:47 jruoho Exp $ */
+/* $NetBSD: t_cosh.c,v 1.2 2011/10/16 13:42:22 jruoho Exp $ */
/*-
* Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: t_cosh.c,v 1.1 2011/10/16 07:40:47 jruoho Exp $");
+__RCSID("$NetBSD: t_cosh.c,v 1.2 2011/10/16 13:42:22 jruoho Exp $");
#include <atf-c.h>
#include <math.h>
@@ -48,7 +48,7 @@
{
#ifndef __vax__
const double x[] = { -9.0, -1.0, -0.05, 0.0, 1.0, 10.0, 20.0 };
- const double eps = 1.0e-16;
+ const double eps = 1.0e-8;
double y, z;
size_t i;
diff -r 97b749a0055d -r 526d8e82cd85 tests/lib/libm/t_sinh.c
--- a/tests/lib/libm/t_sinh.c Sun Oct 16 12:41:45 2011 +0000
+++ b/tests/lib/libm/t_sinh.c Sun Oct 16 13:42:22 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_sinh.c,v 1.1 2011/10/16 07:40:47 jruoho Exp $ */
+/* $NetBSD: t_sinh.c,v 1.2 2011/10/16 13:42:22 jruoho Exp $ */
/*-
* Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: t_sinh.c,v 1.1 2011/10/16 07:40:47 jruoho Exp $");
+__RCSID("$NetBSD: t_sinh.c,v 1.2 2011/10/16 13:42:22 jruoho Exp $");
#include <atf-c.h>
#include <math.h>
@@ -48,7 +48,7 @@
{
#ifndef __vax__
const double x[] = { -9.0, -1.0, -0.05, 0.0, 1.0, 10.0, 20.0 };
- const double eps = 1.0e-16;
+ const double eps = 1.0e-8;
double y, z;
size_t i;
@@ -161,7 +161,7 @@
{
#ifndef __vax__
const float x[] = { -9.0, -1.0, -0.05, 0.0, 1.0, 10.0, 20.0 };
- const float eps = 1.0e-7;
+ const float eps = 1.0e-4;
float y, z;
size_t i;
Home |
Main Index |
Thread Index |
Old Index