diff options
| author | maya <maya@NetBSD.org> | 2016-08-25 00:32:31 +0000 |
|---|---|---|
| committer | maya <maya@NetBSD.org> | 2016-08-25 00:32:31 +0000 |
| commit | 85c36ca36deed5be5220376cf5267c8bbf2fe71f (patch) | |
| tree | 1c5e2b7c4e3633eaf72bf56e8f16aac375b32ccf /tests/lib/libm | |
| parent | 1f1cfa8fa1e32a51403fd2aeca1502d339c385e7 (diff) | |
Add a failing case for t_ldexp
ldexp(2.0, INT_MAX) should be HUGE_VAL, not 0
Diffstat (limited to 'tests/lib/libm')
| -rw-r--r-- | tests/lib/libm/t_ldexp.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/lib/libm/t_ldexp.c b/tests/lib/libm/t_ldexp.c index 29340385199..251f2aeba5f 100644 --- a/tests/lib/libm/t_ldexp.c +++ b/tests/lib/libm/t_ldexp.c @@ -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 @@ struct ldexp_test ldexp_overflow[] = { { 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 } }; |
