git: a55f9466439b - stable/14 - lib/msun/tests: xfail failing lrint_test cases on non-x86 archs

From: Siva Mahadevan <siva_at_FreeBSD.org>
Date: Fri, 26 Jun 2026 16:59:59 UTC
The branch stable/14 has been updated by siva:

URL: https://cgit.FreeBSD.org/src/commit/?id=a55f9466439b021bb1a2721b2c17fce8c1af4f06

commit a55f9466439b021bb1a2721b2c17fce8c1af4f06
Author:     Siva Mahadevan <siva@FreeBSD.org>
AuthorDate: 2025-10-08 20:40:15 +0000
Commit:     Siva Mahadevan <siva@FreeBSD.org>
CommitDate: 2026-06-26 16:10:20 +0000

    lib/msun/tests: xfail failing lrint_test cases on non-x86 archs
    
    Replace ATF_CHECK_* with ATF_REQUIRE_* to fail fast and avoid
    unexpected aborts.
    
    Signed-off-by: Siva Mahadevan <me@svmhdvn.name>
    PR:             290099
    MFC after:      3 days
    Sponsored by:   The FreeBSD Foundation
    Pull Request:   https://github.com/freebsd/freebsd-src/pull/1871
    (cherry picked from commit de601d5bf5c6d2409134abc4638c7a0818cc896e)
---
 lib/msun/tests/lrint_test.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/lib/msun/tests/lrint_test.c b/lib/msun/tests/lrint_test.c
index 29ba82222642..a3f4225dc569 100644
--- a/lib/msun/tests/lrint_test.c
+++ b/lib/msun/tests/lrint_test.c
@@ -41,9 +41,9 @@
 #include "test-utils.h"
 
 #define	test(func, x, result, excepts)	do {					\
-	ATF_CHECK(feclearexcept(FE_ALL_EXCEPT) == 0);				\
+	ATF_REQUIRE(feclearexcept(FE_ALL_EXCEPT) == 0);				\
 	long long _r = (func)(x);						\
-	ATF_CHECK_MSG(_r == (result) || fetestexcept(FE_INVALID),		\
+	ATF_REQUIRE_MSG(_r == (result) || fetestexcept(FE_INVALID),		\
 	    #func "(%Lg) returned %lld, expected %lld", (long double)x, _r,	\
 	    (long long)(result));						\
 	CHECK_FP_EXCEPTIONS_MSG(excepts, FE_ALL_EXCEPT & ALL_STD_EXCEPT,	\
@@ -131,6 +131,9 @@ run_tests(void)
 ATF_TC_WITHOUT_HEAD(lrint);
 ATF_TC_BODY(lrint, tc)
 {
+#if defined(__aarch64__) || defined(__riscv)
+	atf_tc_expect_fail("https://bugs.freebsd.org/290099");
+#endif
 	run_tests();
 #ifdef	__i386__
 	fpsetprec(FP_PE);