Skip to content

Commit be035c9

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

File tree

11 files changed

+69
-3
lines changed

11 files changed

+69
-3
lines changed

lib/msun/tests/cexp_test.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,9 @@ ATF_TC_BODY(imaginaries, tc)
232232
ATF_TC_WITHOUT_HEAD(small);
233233
ATF_TC_BODY(small, tc)
234234
{
235+
#if defined(__riscv)
236+
atf_tc_expect_death("https://bugs.freebsd.org/290099");
237+
#endif
235238
static const double tests[] = {
236239
/* csqrt(a + bI) = x + yI */
237240
/* a b x y */

lib/msun/tests/ctrig_test.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,9 @@ ATF_TC_HEAD(test_axes, tc)
302302
}
303303
ATF_TC_BODY(test_axes, tc)
304304
{
305+
#if defined(__riscv)
306+
atf_tc_expect_death("https://bugs.freebsd.org/290099");
307+
#endif
305308
static const long double nums[] = {
306309
M_PI / 4, M_PI / 2, 3 * M_PI / 4,
307310
5 * M_PI / 4, 3 * M_PI / 2, 7 * M_PI / 4,
@@ -365,6 +368,9 @@ ATF_TC_HEAD(test_small_inputs, tc)
365368
}
366369
ATF_TC_BODY(test_small_inputs, tc)
367370
{
371+
#if defined(__riscv)
372+
atf_tc_expect_death("https://bugs.freebsd.org/290099");
373+
#endif
368374
/*
369375
* z = 0.5 + i Pi/4
370376
* sinh(z) = (sinh(0.5) + i cosh(0.5)) * sqrt(2)/2
@@ -432,6 +438,9 @@ ATF_TC_HEAD(test_large_inputs, tc)
432438
}
433439
ATF_TC_BODY(test_large_inputs, tc)
434440
{
441+
#if defined(__riscv)
442+
atf_tc_expect_death("https://bugs.freebsd.org/290099");
443+
#endif
435444
long double complex z;
436445

437446
/* tanh() uses a threshold around x=22, so check both sides. */

lib/msun/tests/exponential_test.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,9 @@ ATF_TC_BODY(exp2l, tc)
159159
ATF_TC_WITHOUT_HEAD(generic);
160160
ATF_TC_BODY(generic, tc)
161161
{
162+
#if defined(__aarch64__) || defined(__riscv)
163+
atf_tc_expect_fail("https://bugs.freebsd.org/290099");
164+
#endif
162165
run_generic_tests();
163166
}
164167

lib/msun/tests/fma_test.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,9 @@ test_zeroes(void)
121121
static void
122122
test_infinities(void)
123123
{
124+
#if defined(__aarch64__) || defined(__riscv)
125+
atf_tc_expect_fail("https://bugs.freebsd.org/290099");
126+
#endif
124127
testall(INFINITY, 1.0, -1.0, INFINITY, ALL_STD_EXCEPT, 0);
125128
testall(-1.0, INFINITY, 0.0, -INFINITY, ALL_STD_EXCEPT, 0);
126129
testall(0.0, 0.0, INFINITY, INFINITY, ALL_STD_EXCEPT, 0);
@@ -471,6 +474,9 @@ static const int rmodes[] = {
471474
ATF_TC_WITHOUT_HEAD(zeroes);
472475
ATF_TC_BODY(zeroes, tc)
473476
{
477+
#if defined(__aarch64__) || defined(__riscv)
478+
atf_tc_expect_fail("https://bugs.freebsd.org/290099");
479+
#endif
474480
for (size_t i = 0; i < nitems(rmodes); i++) {
475481
debug("rmode = %d\n", rmodes[i]);
476482
fesetround(rmodes[i]);
@@ -481,6 +487,9 @@ ATF_TC_BODY(zeroes, tc)
481487
ATF_TC_WITHOUT_HEAD(infinities);
482488
ATF_TC_BODY(infinities, tc)
483489
{
490+
#if defined(__powerpc64__)
491+
atf_tc_expect_fail("https://bugs.freebsd.org/290099");
492+
#endif
484493
for (size_t i = 0; i < nitems(rmodes); i++) {
485494
debug("rmode = %d\n", rmodes[i]);
486495
fesetround(rmodes[i]);

lib/msun/tests/invctrig_test.c

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,9 @@ c3pi = 9.42477796076937971538793014983850839L;
123123
ATF_TC_WITHOUT_HEAD(zero);
124124
ATF_TC_BODY(zero, tc)
125125
{
126+
#if defined(__riscv)
127+
atf_tc_expect_death("https://bugs.freebsd.org/290099");
128+
#endif
126129
long double complex zero = CMPLXL(0.0, 0.0);
127130

128131
testall_tol(cacosh, zero, CMPLXL(0.0, pi / 2), 1);
@@ -143,6 +146,9 @@ ATF_TC_BODY(zero, tc)
143146
ATF_TC_WITHOUT_HEAD(nan);
144147
ATF_TC_BODY(nan, tc)
145148
{
149+
#if defined(__riscv)
150+
atf_tc_expect_death("https://bugs.freebsd.org/290099");
151+
#endif
146152
long double complex nan_nan = CMPLXL(NAN, NAN);
147153
long double complex z;
148154

@@ -222,6 +228,9 @@ ATF_TC_BODY(nan, tc)
222228
ATF_TC_WITHOUT_HEAD(inf);
223229
ATF_TC_BODY(inf, tc)
224230
{
231+
#if defined(__riscv)
232+
atf_tc_expect_death("https://bugs.freebsd.org/290099");
233+
#endif
225234
long double complex z;
226235

227236
/*
@@ -269,6 +278,9 @@ ATF_TC_BODY(inf, tc)
269278
ATF_TC_WITHOUT_HEAD(axes);
270279
ATF_TC_BODY(axes, tc)
271280
{
281+
#if defined(__riscv)
282+
atf_tc_expect_death("https://bugs.freebsd.org/290099");
283+
#endif
272284
static const long double nums[] = {
273285
-2, -1, -0.5, 0.5, 1, 2
274286
};
@@ -306,6 +318,9 @@ ATF_TC_BODY(axes, tc)
306318
ATF_TC_WITHOUT_HEAD(small);
307319
ATF_TC_BODY(small, tc)
308320
{
321+
#if defined(__riscv)
322+
atf_tc_expect_death("https://bugs.freebsd.org/290099");
323+
#endif
309324
/*
310325
* z = 0.75 + i 0.25
311326
* acos(z) = Pi/4 - i ln(2)/2

lib/msun/tests/logarithm_test.c

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,9 @@
9292
ATF_TC_WITHOUT_HEAD(generic_tests);
9393
ATF_TC_BODY(generic_tests, tc)
9494
{
95-
95+
#if defined(__aarch64__) || defined(__riscv)
96+
atf_tc_expect_fail("https://bugs.freebsd.org/290099");
97+
#endif
9698
/* log(1) == 0, no exceptions raised */
9799
testall0(1.0, 0.0, ALL_STD_EXCEPT, 0);
98100
testall1(0.0, 0.0, ALL_STD_EXCEPT, 0);
@@ -179,6 +181,9 @@ ATF_TC_BODY(roundingmode_tests, tc)
179181
ATF_TC_WITHOUT_HEAD(accuracy_tests);
180182
ATF_TC_BODY(accuracy_tests, tc)
181183
{
184+
#if defined(__riscv)
185+
atf_tc_expect_death("https://bugs.freebsd.org/290099");
186+
#endif
182187
static const struct {
183188
float x;
184189
long double log2x;
@@ -248,7 +253,9 @@ ATF_TC_BODY(log1p_accuracy_tests, tc)
248253
if (atf_tc_get_config_var_as_bool_wd(tc, "ci", false))
249254
atf_tc_expect_fail("https://bugs.freebsd.org/253984");
250255
#endif
251-
256+
#if defined(__riscv)
257+
atf_tc_expect_death("https://bugs.freebsd.org/290099");
258+
#endif
252259
test_tol(log1pf, 0x0.333333p0F,
253260
1.82321546859847114303367992804596800640e-1L, FLT_ULP());
254261
test_tol(log1p, 0x0.3333333333333p0,

lib/msun/tests/lround_test.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@
6565
ATF_TC_WITHOUT_HEAD(main);
6666
ATF_TC_BODY(main, tc)
6767
{
68+
#if defined(__powerpc64__)
69+
atf_tc_expect_fail("https://bugs.freebsd.org/290099");
70+
#endif
6871
testall(0.0, 0, 0);
6972
testall(0.25, 0, FE_INEXACT);
7073
testall(0.5, 1, FE_INEXACT);

lib/msun/tests/nan_test.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,9 @@ testnan(const char *nan_format)
105105
ATF_TC_WITHOUT_HEAD(nan);
106106
ATF_TC_BODY(nan, tc)
107107
{
108+
#if defined(__riscv)
109+
atf_tc_expect_fail("https://bugs.freebsd.org/290099");
110+
#endif
108111
/* Die if a signalling NaN is returned */
109112
feenableexcept(FE_INVALID);
110113

lib/msun/tests/nearbyint_test.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,9 @@ test_modf(int testindex)
152152
ATF_TC_WITHOUT_HEAD(nearbyint);
153153
ATF_TC_BODY(nearbyint, tc)
154154
{
155+
#if defined(__aarch64__) || defined(__riscv)
156+
atf_tc_expect_fail("https://bugs.freebsd.org/290099");
157+
#endif
155158
unsigned i;
156159

157160
for (i = 0; i < nitems(tests); i++) {

lib/msun/tests/next_test.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@ static const long double ldbl_eps = LDBL_EPSILON;
7979
ATF_TC_WITHOUT_HEAD(zeros);
8080
ATF_TC_BODY(zeros, tc)
8181
{
82+
#if defined(__aarch64__) || defined(__riscv)
83+
atf_tc_expect_fail("https://bugs.freebsd.org/290099");
84+
#endif
8285
long double ldbl_small;
8386

8487
#ifdef __i386__
@@ -164,6 +167,9 @@ ATF_TC_BODY(ordinary, tc)
164167
ATF_TC_WITHOUT_HEAD(boundaries);
165168
ATF_TC_BODY(boundaries, tc)
166169
{
170+
#if defined(__aarch64__) || defined(__riscv)
171+
atf_tc_expect_fail("https://bugs.freebsd.org/290099");
172+
#endif
167173
/*
168174
* Tests at word boundaries, normalization boundaries, etc.
169175
*/
@@ -211,6 +217,9 @@ ATF_TC_BODY(boundaries, tc)
211217
ATF_TC_WITHOUT_HEAD(overflow);
212218
ATF_TC_BODY(overflow, tc)
213219
{
220+
#if defined(__aarch64__) || defined(__riscv)
221+
atf_tc_expect_fail("https://bugs.freebsd.org/290099");
222+
#endif
214223
long double ldbl_max;
215224
/*
216225
* We can't use a compile-time constant here because gcc on

0 commit comments

Comments
 (0)