diff options
| author | Siva Mahadevan <me@svmhdvn.name> | 2025-10-08 20:40:15 +0000 |
|---|---|---|
| committer | Li-Wen Hsu <lwhsu@FreeBSD.org> | 2025-12-17 10:43:19 +0000 |
| commit | 6c18c40b29fd5ac66230af34726260ce2d47aecd (patch) | |
| tree | 04253144632a876193370027f0f9f2e759611040 | |
| parent | a9b1650f90f4dbc62baa52b395082b1714b6cbf3 (diff) | |
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
| -rw-r--r-- | contrib/netbsd-tests/lib/libm/t_fe_round.c | 7 |
1 files 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", |
