Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/lib/libm forgot to protect an ilogbl
details: https://anonhg.NetBSD.org/src/rev/0a457fef46e3
branches: trunk
changeset: 347428:0a457fef46e3
user: christos <christos%NetBSD.org@localhost>
date: Fri Aug 26 08:01:55 2016 +0000
description:
forgot to protect an ilogbl
diffstat:
tests/lib/libm/t_ilogb.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (20 lines):
diff -r 5c77f21b7b8e -r 0a457fef46e3 tests/lib/libm/t_ilogb.c
--- a/tests/lib/libm/t_ilogb.c Fri Aug 26 07:07:29 2016 +0000
+++ b/tests/lib/libm/t_ilogb.c Fri Aug 26 08:01:55 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_ilogb.c,v 1.5 2016/08/24 10:04:53 christos Exp $ */
+/* $NetBSD: t_ilogb.c,v 1.6 2016/08/26 08:01:55 christos Exp $ */
/*-
* Copyright (c) 2016 The NetBSD Foundation, Inc.
@@ -65,8 +65,10 @@
ATF_CHECK_RAISED_INVALID;
ATF_CHECK(ilogb(0) == FP_ILOGB0);
ATF_CHECK_RAISED_INVALID;
+#ifdef __HAVE_LONG_DOUBLE
ATF_CHECK(ilogbl(0) == FP_ILOGB0);
ATF_CHECK_RAISED_INVALID;
+#endif
ATF_CHECK(ilogbf(-0) == FP_ILOGB0);
ATF_CHECK_RAISED_INVALID;
Home |
Main Index |
Thread Index |
Old Index