Module Name: src Committed By: martin Date: Sat Feb 1 10:00:04 UTC 2014
Modified Files: src/tests/lib/libc/gen: t_floatunditf.c Log Message: Print a slightly more helpfull message in case of test failure To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/tests/lib/libc/gen/t_floatunditf.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/tests/lib/libc/gen/t_floatunditf.c diff -u src/tests/lib/libc/gen/t_floatunditf.c:1.2 src/tests/lib/libc/gen/t_floatunditf.c:1.3 --- src/tests/lib/libc/gen/t_floatunditf.c:1.2 Thu Jan 30 22:15:55 2014 +++ src/tests/lib/libc/gen/t_floatunditf.c Sat Feb 1 10:00:04 2014 @@ -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 @@ ATF_TC_BODY(floatunditf, tc) 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