mirror of
https://git.freebsd.org/src.git
synced 2026-01-12 06:54:03 +00:00
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. 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
This commit is contained in:
parent
5a0617454e
commit
de601d5bf5
1 changed files with 5 additions and 2 deletions
|
|
@ -41,9 +41,9 @@
|
|||
#include "test-utils.h"
|
||||
|
||||
#define test(func, x, result, excepts) do { \
|
||||
ATF_CHECK(feclearexcept(FE_ALL_EXCEPT) == 0); \
|
||||
ATF_REQUIRE(feclearexcept(FE_ALL_EXCEPT) == 0); \
|
||||
long long _r = (func)(x); \
|
||||
ATF_CHECK_MSG(_r == (result) || fetestexcept(FE_INVALID), \
|
||||
ATF_REQUIRE_MSG(_r == (result) || fetestexcept(FE_INVALID), \
|
||||
#func "(%Lg) returned %lld, expected %lld", (long double)x, _r, \
|
||||
(long long)(result)); \
|
||||
CHECK_FP_EXCEPTIONS_MSG(excepts, FE_ALL_EXCEPT & ALL_STD_EXCEPT, \
|
||||
|
|
@ -131,6 +131,9 @@ run_tests(void)
|
|||
ATF_TC_WITHOUT_HEAD(lrint);
|
||||
ATF_TC_BODY(lrint, tc)
|
||||
{
|
||||
#if defined(__aarch64__) || defined(__riscv)
|
||||
atf_tc_expect_fail("https://bugs.freebsd.org/290099");
|
||||
#endif
|
||||
run_tests();
|
||||
#ifdef __i386__
|
||||
fpsetprec(FP_PE);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue