Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/lib/libm for consistency, print the statement that is ...
details: https://anonhg.NetBSD.org/src/rev/29e18e25b78b
branches: trunk
changeset: 362535:29e18e25b78b
user: maya <maya%NetBSD.org@localhost>
date: Thu Jun 14 21:57:25 2018 +0000
description:
for consistency, print the statement that is true in the error case.
also add missing closing paren
diffstat:
tests/lib/libm/t_ilogb.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 2633b8f324c1 -r 29e18e25b78b tests/lib/libm/t_ilogb.c
--- a/tests/lib/libm/t_ilogb.c Thu Jun 14 21:11:08 2018 +0000
+++ b/tests/lib/libm/t_ilogb.c Thu Jun 14 21:57:25 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_ilogb.c,v 1.8 2018/06/14 21:11:08 maya Exp $ */
+/* $NetBSD: t_ilogb.c,v 1.9 2018/06/14 21:57:25 maya Exp $ */
/*-
* Copyright (c) 2016 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: t_ilogb.c,v 1.8 2018/06/14 21:11:08 maya Exp $");
+__RCSID("$NetBSD: t_ilogb.c,v 1.9 2018/06/14 21:57:25 maya Exp $");
#include <atf-c.h>
#include <fenv.h>
@@ -45,7 +45,7 @@
# define ATF_CHECK_RAISED_INVALID do { \
int r = fetestexcept(FE_ALL_EXCEPT); \
ATF_CHECK_MSG((r & FE_INVALID) != 0, \
- "r & FE_INVALID !=0 (r=%#x, FE_INVALID=%#x\n", \
+ "r & FE_INVALID == 0 (r=%#x, FE_INVALID=%#x)\n", \
r, FE_INVALID); \
(void)feclearexcept(FE_ALL_EXCEPT); \
} while (/*CONSTCOND*/0)
Home |
Main Index |
Thread Index |
Old Index