As couple of checks fails on i386/qemu, reduce tolerance.

This commit is contained in:
jruoho 2011-10-16 13:42:22 +00:00
parent 2083e28d1f
commit 720d37c338
3 changed files with 13 additions and 8 deletions

View File

@ -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_infinity
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 @@ TESTS_C+= t_tanh
LDADD+= -lm
#COPTS+= -Wfloat-equal
.if ${MACHINE_ARCH} == "alpha"
COPTS+= -mieee
.endif
.include <bsd.test.mk>

View File

@ -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 @@ ATF_TC_BODY(cosh_def, tc)
{
#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;

View File

@ -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 @@ ATF_TC_BODY(sinh_def, tc)
{
#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 @@ ATF_TC_BODY(sinhf_def, tc)
{
#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;