Module Name: src
Committed By: rin
Date: Fri Sep 20 22:24:51 UTC 2024
Modified Files:
src/tests/lib/libm: t_remquo.c
Log Message:
t_remquo: Work around missing remquo(3) for vax
Part of PR port-vax/57881
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/tests/lib/libm/t_remquo.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/libm/t_remquo.c
diff -u src/tests/lib/libm/t_remquo.c:1.1 src/tests/lib/libm/t_remquo.c:1.2
--- src/tests/lib/libm/t_remquo.c:1.1 Thu Sep 19 19:43:13 2024
+++ src/tests/lib/libm/t_remquo.c Fri Sep 20 22:24:51 2024
@@ -1,4 +1,4 @@
-/* $NetBSD: t_remquo.c,v 1.1 2024/09/19 19:43:13 gdt Exp $ */
+/* $NetBSD: t_remquo.c,v 1.2 2024/09/20 22:24:51 rin Exp $ */
/*-
* Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -34,6 +34,33 @@
#include <float.h>
#include <math.h>
+/*
+ * remquo(3)
+ */
+ATF_TC(remquo_args);
+ATF_TC_HEAD(remquo_args, tc)
+{
+ atf_tc_set_md_var(tc, "descr", "Test some selected arguments");
+}
+
+ATF_TP_ADD_TCS(tp)
+{
+
+ ATF_TP_ADD_TC(tp, remquo_args);
+
+ return atf_no_error();
+}
+
+#ifdef __vax__
+
+ATF_TC_BODY(remquo_args, tc)
+{
+ atf_tc_expect_fail("PR 57881: vax libm is missing various symbols");
+ atf_tc_fail("missing remquo on vax");
+}
+
+#else /* !__vax__ */
+
static const struct {
double x;
double y;
@@ -55,15 +82,6 @@ static const struct {
{ 180.0, 90.0, 0.0, 2 },
};
-/*
- * remquo(3)
- */
-ATF_TC(remquo_args);
-ATF_TC_HEAD(remquo_args, tc)
-{
- atf_tc_set_md_var(tc, "descr", "Test some selected arguments");
-}
-
ATF_TC_BODY(remquo_args, tc)
{
const double eps = DBL_EPSILON;
@@ -105,10 +123,4 @@ ATF_TC_BODY(remquo_args, tc)
}
}
-ATF_TP_ADD_TCS(tp)
-{
-
- ATF_TP_ADD_TC(tp, remquo_args);
-
- return atf_no_error();
-}
+#endif /* !__vax__ */