Module Name:    src
Committed By:   riastradh
Date:           Sun May  5 14:29:38 UTC 2024

Modified Files:
        src/tests/lib/libm: t_next.c

Log Message:
tests/lib/libm/t_next: Disable this test on VAX.

But leave a replacement xfail test that fails unconditionally, to
leave a reminder in the tests of PR 57881: vax libm is missing
various symbols.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/tests/lib/libm/t_next.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_next.c
diff -u src/tests/lib/libm/t_next.c:1.1 src/tests/lib/libm/t_next.c:1.2
--- src/tests/lib/libm/t_next.c:1.1	Sun May  5 02:53:02 2024
+++ src/tests/lib/libm/t_next.c	Sun May  5 14:29:38 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: t_next.c,v 1.1 2024/05/05 02:53:02 riastradh Exp $	*/
+/*	$NetBSD: t_next.c,v 1.2 2024/05/05 14:29:38 riastradh Exp $	*/
 
 /*-
  * Copyright (c) 2024 The NetBSD Foundation, Inc.
@@ -27,12 +27,24 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: t_next.c,v 1.1 2024/05/05 02:53:02 riastradh Exp $");
+__RCSID("$NetBSD: t_next.c,v 1.2 2024/05/05 14:29:38 riastradh Exp $");
 
 #include <atf-c.h>
 #include <float.h>
 #include <math.h>
 
+#ifdef __vax__		/* XXX PR 57881: vax libm is missing various symbols */
+
+ATF_TC(vaxafter)
+ATF_TC_HEAD(vaxafter, tc)
+{
+
+	atf_expect_fail("PR 57881: vax libm is missing various symbols")
+	atf_tc_fail("missing nextafter{,f,l} and nexttoward{,f,l} on vax");
+}
+
+#else  /* !__vax__ */
+
 #define	CHECK(x, y)							      \
 	ATF_CHECK_EQ_MSG((x), (y), #x"=%La=%Lg, "#y"=%La=%Lg",		      \
 	    (long double)(x), (long double)(x),				      \
@@ -146,14 +158,20 @@ ATF_TC_BODY(nexttowardl, tc)
 	CHECK(nexttowardl(-1 + LDBL_EPSILON/2, -2), -1);
 }
 
+#endif	/* __vax__ */
+
 ATF_TP_ADD_TCS(tp)
 {
 
+#ifdef __vax__
+	ATF_TP_ADD_TC(tp, vaxafter);
+#else
 	ATF_TP_ADD_TC(tp, nextafter);
 	ATF_TP_ADD_TC(tp, nextafterf);
 	ATF_TP_ADD_TC(tp, nextafterl);
 	ATF_TP_ADD_TC(tp, nexttoward);
 	ATF_TP_ADD_TC(tp, nexttowardf);
 	ATF_TP_ADD_TC(tp, nexttowardl);
+#endif
 	return atf_no_error();
 }

Reply via email to