Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/lib/libc/gen Print a slightly more helpfull message in...
details: https://anonhg.NetBSD.org/src/rev/f9b0838cff1c
branches: trunk
changeset: 326523:f9b0838cff1c
user: martin <martin%NetBSD.org@localhost>
date: Sat Feb 01 10:00:04 2014 +0000
description:
Print a slightly more helpfull message in case of test failure
diffstat:
tests/lib/libc/gen/t_floatunditf.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diffs (22 lines):
diff -r e8c750486cc4 -r f9b0838cff1c tests/lib/libc/gen/t_floatunditf.c
--- a/tests/lib/libc/gen/t_floatunditf.c Sat Feb 01 09:04:57 2014 +0000
+++ b/tests/lib/libc/gen/t_floatunditf.c Sat Feb 01 10:00:04 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_floatunditf.c,v 1.2 2014/01/30 22:15:55 joerg Exp $ */
+/* $NetBSD: t_floatunditf.c,v 1.3 2014/02/01 10:00:04 martin Exp $ */
/*-
* Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -114,7 +114,11 @@
size_t i;
for (i = 0; i < __arraycount(testcases); ++i)
- ATF_CHECK(testcases[i].ld == (long double)testcases[i].u64);
+ ATF_CHECK_MSG(
+ testcases[i].ld == (long double)testcases[i].u64,
+ "#%zu: expected %.20Lf, got %.20Lf\n", i,
+ testcases[i].ld,
+ (long double)testcases[i].u64);
}
#endif
Home |
Main Index |
Thread Index |
Old Index