git: 4a07cff871da - stable/14 - lib/msun/tests: xfail fe_round on riscv64
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 26 Jun 2026 16:59:57 UTC
The branch stable/14 has been updated by siva:
URL: https://cgit.FreeBSD.org/src/commit/?id=4a07cff871da327ecffffab3015198bd0b40c11a
commit 4a07cff871da327ecffffab3015198bd0b40c11a
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:13 +0000
lib/msun/tests: xfail fe_round on riscv64
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 6c18c40b29fd5ac66230af34726260ce2d47aecd)
---
contrib/netbsd-tests/lib/libm/t_fe_round.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/contrib/netbsd-tests/lib/libm/t_fe_round.c b/contrib/netbsd-tests/lib/libm/t_fe_round.c
index a7ee3bf77b98..58d1dbfc0e37 100644
--- a/contrib/netbsd-tests/lib/libm/t_fe_round.c
+++ b/contrib/netbsd-tests/lib/libm/t_fe_round.c
@@ -72,20 +72,23 @@ ATF_TC_HEAD(fe_round, tc)
ATF_TC_BODY(fe_round, tc)
{
+#if defined(__riscv)
+ atf_tc_expect_fail("https://bugs.freebsd.org/290099");
+#endif
long int received;
for (unsigned int i = 0; i < __arraycount(values); i++) {
fesetround(values[i].round_mode);
received = lrint(values[i].input);
- ATF_CHECK_MSG(
+ ATF_REQUIRE_MSG(
(labs(received - values[i].expected) < EPSILON),
"lrint rounding wrong, difference too large. "
"input: %f (index %d): got %ld, expected %ld",
values[i].input, i, received, values[i].expected);
/* Do we get the same rounding mode out? */
- ATF_CHECK_MSG(
+ ATF_REQUIRE_MSG(
(fegetround() == values[i].round_mode),
"Didn't get the same rounding mode out!. "
"(index %d) fed in %d rounding mode, got %d out",