summaryrefslogtreecommitdiff
path: root/tests/lib/libc/stdlib
diff options
context:
space:
mode:
authorjruoho <jruoho@NetBSD.org>2012-03-18 07:00:51 +0000
committerjruoho <jruoho@NetBSD.org>2012-03-18 07:00:51 +0000
commit5d2b5a67e403c1dd8522bcb623025747d549ae98 (patch)
tree61e956d9e8b4eba4ffd0752462b2df6070fe8315 /tests/lib/libc/stdlib
parentef16894e87696486c703fc43466650375033fb78 (diff)
Move the references to PRs from code comments to the test description. Once
ATF has the ability to output the metadata in the HTML reports, it should be easy to traverse between releng and gnats -reports via links.
Diffstat (limited to 'tests/lib/libc/stdlib')
-rw-r--r--tests/lib/libc/stdlib/t_strtod.c31
1 files changed, 6 insertions, 25 deletions
diff --git a/tests/lib/libc/stdlib/t_strtod.c b/tests/lib/libc/stdlib/t_strtod.c
index dcb74d01ad8..a728adffad2 100644
--- a/tests/lib/libc/stdlib/t_strtod.c
+++ b/tests/lib/libc/stdlib/t_strtod.c
@@ -1,4 +1,4 @@
-/* $NetBSD: t_strtod.c,v 1.27 2011/09/30 14:50:20 jruoho Exp $ */
+/* $NetBSD: t_strtod.c,v 1.28 2012/03/18 07:00:51 jruoho Exp $ */
/*-
* Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -32,7 +32,7 @@
/* Public domain, Otto Moerbeek <otto@drijf.net>, 2006. */
#include <sys/cdefs.h>
-__RCSID("$NetBSD: t_strtod.c,v 1.27 2011/09/30 14:50:20 jruoho Exp $");
+__RCSID("$NetBSD: t_strtod.c,v 1.28 2012/03/18 07:00:51 jruoho Exp $");
#include <errno.h>
#include <math.h>
@@ -112,15 +112,12 @@ ATF_TC_BODY(strtod_hex, tc)
ATF_TC(strtod_inf);
ATF_TC_HEAD(strtod_inf, tc)
{
- atf_tc_set_md_var(tc, "descr", "A strtod(3) with INF");
+ atf_tc_set_md_var(tc, "descr", "A strtod(3) with INF (PR lib/33262)");
}
ATF_TC_BODY(strtod_inf, tc)
{
#ifndef __vax__
- /*
- * See the closed PR lib/33262.
- */
for (size_t i = 0; i < __arraycount(inf_strings); i++) {
double d = strtod(inf_strings[i], NULL);
ATF_REQUIRE(isinf(d) != 0);
@@ -133,15 +130,12 @@ ATF_TC_BODY(strtod_inf, tc)
ATF_TC(strtof_inf);
ATF_TC_HEAD(strtof_inf, tc)
{
- atf_tc_set_md_var(tc, "descr", "A strtof(3) with INF");
+ atf_tc_set_md_var(tc, "descr", "A strtof(3) with INF (PR lib/33262)");
}
ATF_TC_BODY(strtof_inf, tc)
{
#ifndef __vax__
- /*
- * See the closed PR lib/33262.
- */
for (size_t i = 0; i < __arraycount(inf_strings); i++) {
float f = strtof(inf_strings[i], NULL);
ATF_REQUIRE(isinf(f) != 0);
@@ -154,19 +148,13 @@ ATF_TC_BODY(strtof_inf, tc)
ATF_TC(strtold_inf);
ATF_TC_HEAD(strtold_inf, tc)
{
- atf_tc_set_md_var(tc, "descr", "A strtold(3) with INF");
+ atf_tc_set_md_var(tc, "descr", "A strtold(3) with INF (PR lib/33262)");
}
ATF_TC_BODY(strtold_inf, tc)
{
#ifndef __vax__
# ifdef __HAVE_LONG_DOUBLE
-
- /*
- * See the closed PR lib/33262.
- *
- * This may also fail under QEMU; cf. PR misc/44767.
- */
if (system("cpuctl identify 0 | grep -q QEMU") == 0)
atf_tc_expect_fail("PR misc/44767");
@@ -223,7 +211,7 @@ ATF_TC_BODY(strtof_nan, tc)
ATF_TC(strtold_nan);
ATF_TC_HEAD(strtold_nan, tc)
{
- atf_tc_set_md_var(tc, "descr", "A strtold(3) with NaN");
+ atf_tc_set_md_var(tc, "descr", "A strtold(3) with NaN (PR lib/45020)");
}
ATF_TC_BODY(strtold_nan, tc)
@@ -233,11 +221,6 @@ ATF_TC_BODY(strtold_nan, tc)
char *end;
- /*
- * See PR lib/45020.
- *
- * This may also fail under QEMU; cf. PR misc/44767.
- */
if (system("cpuctl identify 0 | grep -q QEMU") == 0)
atf_tc_expect_fail("PR misc/44767");
@@ -266,8 +249,6 @@ ATF_TC_BODY(strtod_round, tc)
/*
* Test that strtod(3) honors the current rounding mode.
* The used value is somewhere near 1 + DBL_EPSILON + FLT_EPSILON.
- *
- * May fail under QEMU; cf. PR misc/44767.
*/
const char *val =
"1.00000011920928977282585492503130808472633361816406";