Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/lib/libm Print the input to cosf on failure too.
details: https://anonhg.NetBSD.org/src/rev/39149e5ac471
branches: trunk
changeset: 994495:39149e5ac471
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sat Nov 10 23:04:16 2018 +0000
description:
Print the input to cosf on failure too.
diffstat:
tests/lib/libm/t_cos.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (20 lines):
diff -r f28c13d35936 -r 39149e5ac471 tests/lib/libm/t_cos.c
--- a/tests/lib/libm/t_cos.c Sat Nov 10 22:19:33 2018 +0000
+++ b/tests/lib/libm/t_cos.c Sat Nov 10 23:04:16 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_cos.c,v 1.6 2018/11/07 04:00:13 riastradh Exp $ */
+/* $NetBSD: t_cos.c,v 1.7 2018/11/10 23:04:16 riastradh Exp $ */
/*-
* Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -179,8 +179,8 @@
assert(cos_theta != 0);
if (!(fabsf((cosf(theta) - cos_theta)/cos_theta) <= eps)) {
- atf_tc_fail_nonfatal("cosf(%d deg) = %.8g != %.8g",
- deg, cos(theta), cos_theta);
+ atf_tc_fail_nonfatal("cosf(%d deg = %.8g) = %.8g"
+ " != %.8g", deg, theta, cos(theta), cos_theta);
}
}
}
Home |
Main Index |
Thread Index |
Old Index