# HG changeset patch # User Markus Mützel # Date 1631450711 -7200 # Node ID e1d9d8ef2b295bc39cd86d89307c0e95a3b498fe # Parent b709d7b41cf834eee098b36b3a9e17ae7c6c6bc7 mappers.cc: Skip tests on run-time and don't mark as regressions. * mappers.cc: Re-do logic that is used to skip tests on some platforms. That will hopefully avoid them being marked as regressions automatically. diff -r b709d7b41cf8 -r e1d9d8ef2b29 libinterp/corefcn/mappers.cc --- a/libinterp/corefcn/mappers.cc Fri Sep 10 07:27:32 2021 -0700 +++ b/libinterp/corefcn/mappers.cc Sun Sep 12 14:45:11 2021 +0200 @@ -135,10 +135,9 @@ %! v = [0, pi, pi/2, pi/2]; %! assert (real (acos (x)), v); -%!test <*52627> +%!testif ; ismac () || ispc () <52627> %! ## Same test code as above, but intended only for test statistics on Mac and %! ## Windows. Their trig/hyperbolic functions have huge tolerances. -%! if (! ismac () && ! ispc ()), return; endif %! x = [1, -1, i, -i] .* 1e150; %! v = [0, pi, pi/2, pi/2]; %! assert (real (acos (x)), v); @@ -166,10 +165,9 @@ %! v = [0, pi/2*i, pi*i, pi/2*i]; %! assert (acosh (x), v, sqrt (eps)); -%!test <*52627> +%!testif ; ismac () <52627> %! ## Same test code as above, but intended only for test statistics on Mac. %! ## Mac trig/hyperbolic functions have huge tolerances. -%! if (! ismac ()), return; endif %! x = [1, 0, -1, 0]; %! v = [0, pi/2*i, pi*i, pi/2*i]; %! assert (acosh (x), v, sqrt (eps)); @@ -189,10 +187,9 @@ %! v = single ([0, pi/2*i, pi*i, pi/2*i]); %! assert (acosh (x), v, sqrt (eps ("single"))); -%!test <*52627> +%!testif ; ismac () <52627> %! ## Same test code as above, but intended only for test statistics on Mac. %! ## Mac trig/hyperbolic functions have huge tolerances. -%! if (! ismac ()), return; endif %! x = single ([1, 0, -1, 0]); %! v = single ([0, pi/2*i, pi*i, pi/2*i]); %! assert (acosh (x), v, sqrt (eps ("single"))); @@ -210,10 +207,9 @@ %! v = [0, pi, pi/2, -pi/2]; %! assert (imag (acosh (x)), v); -%!test <*52627> +%!testif ; ismac () || ispc () <52627> %! ## Same test code as above, but intended only for test statistics on Mac and %! ## Windows. Their trig/hyperbolic functions have huge tolerances. -%! if (! ismac () && ! ispc ()), return; endif %! x = [1, -1, i, -i] .* 1e150; %! v = [0, pi, pi/2, -pi/2]; %! assert (imag (acosh (x)), v); @@ -344,10 +340,9 @@ %! v = [pi/2, -pi/2, 0, -0]; %! assert (real (asin (x)), v); -%!test <*52627> +%!testif ; ismac () || ispc () <52627> %! ## Same test code as above, but intended only for test statistics on Mac and %! ## Windows. Their trig/hyperbolic functions have huge tolerances. -%! if (! ismac () && ! ispc ()), return; endif %! x = [1, -1, i, -i] .* 1e150; %! v = [pi/2, -pi/2, 0, -0]; %! assert (real (asin (x)), v); @@ -387,10 +382,9 @@ %! v = [0, 0, pi/2, -pi/2]; %! assert (imag (asinh (x)), v); -%!test <*52627> +%!testif ; ismac () || ispc () <52627> %! ## Same test code as above, but intended only for test statistics on Mac and %! ## Windows. Their trig/hyperbolic functions have huge tolerances. -%! if (! ismac () && ! ispc ()), return; endif %! x = [1, -1, i, -i] .* 1e150; %! v = [0, 0, pi/2, -pi/2]; %! assert (imag (asinh (x)), v);