mirror of
https://git.freebsd.org/src.git
synced 2026-01-11 19:57:22 +00:00
lib/msun/tests: xfail remaining failing tests on non-x86 archs
These are the remaining trivial xfail cases where no other test logic changes are necessary. 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
de601d5bf5
commit
405188aeac
11 changed files with 69 additions and 3 deletions
|
|
@ -232,6 +232,9 @@ ATF_TC_BODY(imaginaries, tc)
|
|||
ATF_TC_WITHOUT_HEAD(small);
|
||||
ATF_TC_BODY(small, tc)
|
||||
{
|
||||
#if defined(__riscv)
|
||||
atf_tc_expect_death("https://bugs.freebsd.org/290099");
|
||||
#endif
|
||||
static const double tests[] = {
|
||||
/* csqrt(a + bI) = x + yI */
|
||||
/* a b x y */
|
||||
|
|
|
|||
|
|
@ -302,6 +302,9 @@ ATF_TC_HEAD(test_axes, tc)
|
|||
}
|
||||
ATF_TC_BODY(test_axes, tc)
|
||||
{
|
||||
#if defined(__riscv)
|
||||
atf_tc_expect_death("https://bugs.freebsd.org/290099");
|
||||
#endif
|
||||
static const long double nums[] = {
|
||||
M_PI / 4, M_PI / 2, 3 * M_PI / 4,
|
||||
5 * M_PI / 4, 3 * M_PI / 2, 7 * M_PI / 4,
|
||||
|
|
@ -365,6 +368,9 @@ ATF_TC_HEAD(test_small_inputs, tc)
|
|||
}
|
||||
ATF_TC_BODY(test_small_inputs, tc)
|
||||
{
|
||||
#if defined(__riscv)
|
||||
atf_tc_expect_death("https://bugs.freebsd.org/290099");
|
||||
#endif
|
||||
/*
|
||||
* z = 0.5 + i Pi/4
|
||||
* sinh(z) = (sinh(0.5) + i cosh(0.5)) * sqrt(2)/2
|
||||
|
|
@ -432,6 +438,9 @@ ATF_TC_HEAD(test_large_inputs, tc)
|
|||
}
|
||||
ATF_TC_BODY(test_large_inputs, tc)
|
||||
{
|
||||
#if defined(__riscv)
|
||||
atf_tc_expect_death("https://bugs.freebsd.org/290099");
|
||||
#endif
|
||||
long double complex z;
|
||||
|
||||
/* tanh() uses a threshold around x=22, so check both sides. */
|
||||
|
|
|
|||
|
|
@ -159,6 +159,9 @@ ATF_TC_BODY(exp2l, tc)
|
|||
ATF_TC_WITHOUT_HEAD(generic);
|
||||
ATF_TC_BODY(generic, tc)
|
||||
{
|
||||
#if defined(__aarch64__) || defined(__riscv)
|
||||
atf_tc_expect_fail("https://bugs.freebsd.org/290099");
|
||||
#endif
|
||||
run_generic_tests();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -121,6 +121,9 @@ test_zeroes(void)
|
|||
static void
|
||||
test_infinities(void)
|
||||
{
|
||||
#if defined(__aarch64__) || defined(__riscv)
|
||||
atf_tc_expect_fail("https://bugs.freebsd.org/290099");
|
||||
#endif
|
||||
testall(INFINITY, 1.0, -1.0, INFINITY, ALL_STD_EXCEPT, 0);
|
||||
testall(-1.0, INFINITY, 0.0, -INFINITY, ALL_STD_EXCEPT, 0);
|
||||
testall(0.0, 0.0, INFINITY, INFINITY, ALL_STD_EXCEPT, 0);
|
||||
|
|
@ -471,6 +474,9 @@ static const int rmodes[] = {
|
|||
ATF_TC_WITHOUT_HEAD(zeroes);
|
||||
ATF_TC_BODY(zeroes, tc)
|
||||
{
|
||||
#if defined(__aarch64__) || defined(__riscv)
|
||||
atf_tc_expect_fail("https://bugs.freebsd.org/290099");
|
||||
#endif
|
||||
for (size_t i = 0; i < nitems(rmodes); i++) {
|
||||
debug("rmode = %d\n", rmodes[i]);
|
||||
fesetround(rmodes[i]);
|
||||
|
|
@ -481,6 +487,9 @@ ATF_TC_BODY(zeroes, tc)
|
|||
ATF_TC_WITHOUT_HEAD(infinities);
|
||||
ATF_TC_BODY(infinities, tc)
|
||||
{
|
||||
#if defined(__powerpc64__)
|
||||
atf_tc_expect_fail("https://bugs.freebsd.org/290099");
|
||||
#endif
|
||||
for (size_t i = 0; i < nitems(rmodes); i++) {
|
||||
debug("rmode = %d\n", rmodes[i]);
|
||||
fesetround(rmodes[i]);
|
||||
|
|
|
|||
|
|
@ -123,6 +123,9 @@ c3pi = 9.42477796076937971538793014983850839L;
|
|||
ATF_TC_WITHOUT_HEAD(zero);
|
||||
ATF_TC_BODY(zero, tc)
|
||||
{
|
||||
#if defined(__riscv)
|
||||
atf_tc_expect_death("https://bugs.freebsd.org/290099");
|
||||
#endif
|
||||
long double complex zero = CMPLXL(0.0, 0.0);
|
||||
|
||||
testall_tol(cacosh, zero, CMPLXL(0.0, pi / 2), 1);
|
||||
|
|
@ -143,6 +146,9 @@ ATF_TC_BODY(zero, tc)
|
|||
ATF_TC_WITHOUT_HEAD(nan);
|
||||
ATF_TC_BODY(nan, tc)
|
||||
{
|
||||
#if defined(__riscv)
|
||||
atf_tc_expect_death("https://bugs.freebsd.org/290099");
|
||||
#endif
|
||||
long double complex nan_nan = CMPLXL(NAN, NAN);
|
||||
long double complex z;
|
||||
|
||||
|
|
@ -222,6 +228,9 @@ ATF_TC_BODY(nan, tc)
|
|||
ATF_TC_WITHOUT_HEAD(inf);
|
||||
ATF_TC_BODY(inf, tc)
|
||||
{
|
||||
#if defined(__riscv)
|
||||
atf_tc_expect_death("https://bugs.freebsd.org/290099");
|
||||
#endif
|
||||
long double complex z;
|
||||
|
||||
/*
|
||||
|
|
@ -269,6 +278,9 @@ ATF_TC_BODY(inf, tc)
|
|||
ATF_TC_WITHOUT_HEAD(axes);
|
||||
ATF_TC_BODY(axes, tc)
|
||||
{
|
||||
#if defined(__riscv)
|
||||
atf_tc_expect_death("https://bugs.freebsd.org/290099");
|
||||
#endif
|
||||
static const long double nums[] = {
|
||||
-2, -1, -0.5, 0.5, 1, 2
|
||||
};
|
||||
|
|
@ -306,6 +318,9 @@ ATF_TC_BODY(axes, tc)
|
|||
ATF_TC_WITHOUT_HEAD(small);
|
||||
ATF_TC_BODY(small, tc)
|
||||
{
|
||||
#if defined(__riscv)
|
||||
atf_tc_expect_death("https://bugs.freebsd.org/290099");
|
||||
#endif
|
||||
/*
|
||||
* z = 0.75 + i 0.25
|
||||
* acos(z) = Pi/4 - i ln(2)/2
|
||||
|
|
|
|||
|
|
@ -92,7 +92,9 @@
|
|||
ATF_TC_WITHOUT_HEAD(generic_tests);
|
||||
ATF_TC_BODY(generic_tests, tc)
|
||||
{
|
||||
|
||||
#if defined(__aarch64__) || defined(__riscv)
|
||||
atf_tc_expect_fail("https://bugs.freebsd.org/290099");
|
||||
#endif
|
||||
/* log(1) == 0, no exceptions raised */
|
||||
testall0(1.0, 0.0, ALL_STD_EXCEPT, 0);
|
||||
testall1(0.0, 0.0, ALL_STD_EXCEPT, 0);
|
||||
|
|
@ -179,6 +181,9 @@ ATF_TC_BODY(roundingmode_tests, tc)
|
|||
ATF_TC_WITHOUT_HEAD(accuracy_tests);
|
||||
ATF_TC_BODY(accuracy_tests, tc)
|
||||
{
|
||||
#if defined(__riscv)
|
||||
atf_tc_expect_death("https://bugs.freebsd.org/290099");
|
||||
#endif
|
||||
static const struct {
|
||||
float x;
|
||||
long double log2x;
|
||||
|
|
@ -248,7 +253,9 @@ ATF_TC_BODY(log1p_accuracy_tests, tc)
|
|||
if (atf_tc_get_config_var_as_bool_wd(tc, "ci", false))
|
||||
atf_tc_expect_fail("https://bugs.freebsd.org/253984");
|
||||
#endif
|
||||
|
||||
#if defined(__riscv)
|
||||
atf_tc_expect_death("https://bugs.freebsd.org/290099");
|
||||
#endif
|
||||
test_tol(log1pf, 0x0.333333p0F,
|
||||
1.82321546859847114303367992804596800640e-1L, FLT_ULP());
|
||||
test_tol(log1p, 0x0.3333333333333p0,
|
||||
|
|
|
|||
|
|
@ -65,6 +65,9 @@
|
|||
ATF_TC_WITHOUT_HEAD(main);
|
||||
ATF_TC_BODY(main, tc)
|
||||
{
|
||||
#if defined(__powerpc64__)
|
||||
atf_tc_expect_fail("https://bugs.freebsd.org/290099");
|
||||
#endif
|
||||
testall(0.0, 0, 0);
|
||||
testall(0.25, 0, FE_INEXACT);
|
||||
testall(0.5, 1, FE_INEXACT);
|
||||
|
|
|
|||
|
|
@ -105,6 +105,9 @@ testnan(const char *nan_format)
|
|||
ATF_TC_WITHOUT_HEAD(nan);
|
||||
ATF_TC_BODY(nan, tc)
|
||||
{
|
||||
#if defined(__riscv)
|
||||
atf_tc_expect_fail("https://bugs.freebsd.org/290099");
|
||||
#endif
|
||||
/* Die if a signalling NaN is returned */
|
||||
feenableexcept(FE_INVALID);
|
||||
|
||||
|
|
|
|||
|
|
@ -152,6 +152,9 @@ test_modf(int testindex)
|
|||
ATF_TC_WITHOUT_HEAD(nearbyint);
|
||||
ATF_TC_BODY(nearbyint, tc)
|
||||
{
|
||||
#if defined(__aarch64__) || defined(__riscv)
|
||||
atf_tc_expect_fail("https://bugs.freebsd.org/290099");
|
||||
#endif
|
||||
unsigned i;
|
||||
|
||||
for (i = 0; i < nitems(tests); i++) {
|
||||
|
|
|
|||
|
|
@ -79,6 +79,9 @@ static const long double ldbl_eps = LDBL_EPSILON;
|
|||
ATF_TC_WITHOUT_HEAD(zeros);
|
||||
ATF_TC_BODY(zeros, tc)
|
||||
{
|
||||
#if defined(__aarch64__) || defined(__riscv)
|
||||
atf_tc_expect_fail("https://bugs.freebsd.org/290099");
|
||||
#endif
|
||||
long double ldbl_small;
|
||||
|
||||
#ifdef __i386__
|
||||
|
|
@ -164,6 +167,9 @@ ATF_TC_BODY(ordinary, tc)
|
|||
ATF_TC_WITHOUT_HEAD(boundaries);
|
||||
ATF_TC_BODY(boundaries, tc)
|
||||
{
|
||||
#if defined(__aarch64__) || defined(__riscv)
|
||||
atf_tc_expect_fail("https://bugs.freebsd.org/290099");
|
||||
#endif
|
||||
/*
|
||||
* Tests at word boundaries, normalization boundaries, etc.
|
||||
*/
|
||||
|
|
@ -211,6 +217,9 @@ ATF_TC_BODY(boundaries, tc)
|
|||
ATF_TC_WITHOUT_HEAD(overflow);
|
||||
ATF_TC_BODY(overflow, tc)
|
||||
{
|
||||
#if defined(__aarch64__) || defined(__riscv)
|
||||
atf_tc_expect_fail("https://bugs.freebsd.org/290099");
|
||||
#endif
|
||||
long double ldbl_max;
|
||||
/*
|
||||
* We can't use a compile-time constant here because gcc on
|
||||
|
|
|
|||
|
|
@ -85,7 +85,9 @@ ATF_TC_HEAD(special, tc)
|
|||
}
|
||||
ATF_TC_BODY(special, tc)
|
||||
{
|
||||
|
||||
#if defined(__aarch64__) || defined(__riscv)
|
||||
atf_tc_expect_fail("https://bugs.freebsd.org/290099");
|
||||
#endif
|
||||
/* Values at 0 should be exact. */
|
||||
testall(tan, 0.0, 0.0, ALL_STD_EXCEPT, 0);
|
||||
testall(tan, -0.0, -0.0, ALL_STD_EXCEPT, 0);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue