Skip to content

Commit 06d4428

Browse files
committed
lib/msun/tests: xfail fe_round on riscv64
Replace ATF_CHECK_* with ATF_REQUIRE_* to fail fast and avoid unexpected aborts. PR: 290099 Signed-off-by: Siva Mahadevan <[email protected]> Sponsored by: The FreeBSD Foundation
1 parent 49efe1a commit 06d4428

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

contrib/netbsd-tests/lib/libm/t_fe_round.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,20 +72,23 @@ ATF_TC_HEAD(fe_round, tc)
7272

7373
ATF_TC_BODY(fe_round, tc)
7474
{
75+
#if defined(__riscv)
76+
atf_tc_expect_fail("https://bugs.freebsd.org/290099");
77+
#endif
7578
long int received;
7679

7780
for (unsigned int i = 0; i < __arraycount(values); i++) {
7881
fesetround(values[i].round_mode);
7982

8083
received = lrint(values[i].input);
81-
ATF_CHECK_MSG(
84+
ATF_REQUIRE_MSG(
8285
(labs(received - values[i].expected) < EPSILON),
8386
"lrint rounding wrong, difference too large. "
8487
"input: %f (index %d): got %ld, expected %ld",
8588
values[i].input, i, received, values[i].expected);
8689

8790
/* Do we get the same rounding mode out? */
88-
ATF_CHECK_MSG(
91+
ATF_REQUIRE_MSG(
8992
(fegetround() == values[i].round_mode),
9093
"Didn't get the same rounding mode out!. "
9194
"(index %d) fed in %d rounding mode, got %d out",

0 commit comments

Comments
 (0)