Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/lib/libm Add a failing case for t_ldexp
details: https://anonhg.NetBSD.org/src/rev/89b8f34ed5b3
branches: trunk
changeset: 347406:89b8f34ed5b3
user: maya <maya%NetBSD.org@localhost>
date: Thu Aug 25 00:32:31 2016 +0000
description:
Add a failing case for t_ldexp
ldexp(2.0, INT_MAX) should be HUGE_VAL, not 0
diffstat:
tests/lib/libm/t_ldexp.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (31 lines):
diff -r e18b529a9f80 -r 89b8f34ed5b3 tests/lib/libm/t_ldexp.c
--- a/tests/lib/libm/t_ldexp.c Thu Aug 25 00:26:01 2016 +0000
+++ b/tests/lib/libm/t_ldexp.c Thu Aug 25 00:32:31 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_ldexp.c,v 1.15 2016/08/25 00:26:01 maya Exp $ */
+/* $NetBSD: t_ldexp.c,v 1.16 2016/08/25 00:32:31 maya Exp $ */
/*-
* Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: t_ldexp.c,v 1.15 2016/08/25 00:26:01 maya Exp $");
+__RCSID("$NetBSD: t_ldexp.c,v 1.16 2016/08/25 00:32:31 maya Exp $");
#include <sys/param.h>
@@ -96,10 +96,12 @@
{ 1.0, 1023, 1, " inf" },
{ 1.0, -1022, 2046, " inf" },
{ 1.0, 1025, SKIP, " inf" },
+ { 2.0, INT_MAX,SKIP, " inf" },
{ -1.0, 1024, SKIP, " -inf" },
{ -1.0, 1023, 1, " -inf" },
{ -1.0, -1022, 2046, " -inf" },
{ -1.0, 1025, SKIP, " -inf" },
+ { -2.0, INT_MAX,SKIP, " -inf" },
{ 0, 0, 0, NULL }
};
Home |
Main Index |
Thread Index |
Old Index