Skip to content

Commit 3ec5727

Browse files
committed
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. PR: 290099 Signed-off-by: Siva Mahadevan <[email protected]> Sponsored by: The FreeBSD Foundation
1 parent a1fef57 commit 3ec5727

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

lib/msun/tests/lrint_test.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@
4141
#include "test-utils.h"
4242

4343
#define test(func, x, result, excepts) do { \
44-
ATF_CHECK(feclearexcept(FE_ALL_EXCEPT) == 0); \
44+
ATF_REQUIRE(feclearexcept(FE_ALL_EXCEPT) == 0); \
4545
long long _r = (func)(x); \
46-
ATF_CHECK_MSG(_r == (result) || fetestexcept(FE_INVALID), \
46+
ATF_REQUIRE_MSG(_r == (result) || fetestexcept(FE_INVALID), \
4747
#func "(%Lg) returned %lld, expected %lld", (long double)x, _r, \
4848
(long long)(result)); \
4949
CHECK_FP_EXCEPTIONS_MSG(excepts, FE_ALL_EXCEPT & ALL_STD_EXCEPT, \
@@ -131,6 +131,9 @@ run_tests(void)
131131
ATF_TC_WITHOUT_HEAD(lrint);
132132
ATF_TC_BODY(lrint, tc)
133133
{
134+
#if defined(__riscv)
135+
atf_tc_expect_fail("https://bugs.freebsd.org/290099");
136+
#endif
134137
run_tests();
135138
#ifdef __i386__
136139
fpsetprec(FP_PE);

0 commit comments

Comments
 (0)