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 <[email protected]>
PR:		290099
MFC after:	3 days
Sponsored by:	The FreeBSD Foundation
Pull Request:	https://github.com/freebsd/freebsd-src/pull/1871
This commit is contained in:
Siva Mahadevan authored and Li-Wen Hsu committed 2025-12-17 18:43:19 +08:00
1 parent a9b1650f90
commit 6c18c40b29
1 file changed
+5 -2
+5 -2
View File
@@ -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",