Mercurial > octave
changeset 25076:b9c62b62f9eb stable
test: Mark certain bugs as xtest when run on Windows platforms (bug #53490).
* mappers.cc (Facos, Facosh, Fasin, Fasinh): Use run-time conditional
(! ispc ()) to regular BIST code and only run xtest on Windoes platforms.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Sat, 31 Mar 2018 22:47:00 +0200 |
parents | 8fb9aeed4549 |
children | f98ef2b55641 |
files | libinterp/corefcn/mappers.cc |
diffstat | 1 files changed, 12 insertions(+), 12 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/corefcn/mappers.cc Mon Apr 02 00:56:39 2018 +0200 +++ b/libinterp/corefcn/mappers.cc Sat Mar 31 22:47:00 2018 +0200 @@ -126,14 +126,14 @@ ## Test large magnitude arguments (bug #45507) ## Test fails with older versions of libm, solution is to upgrade. -%!testif ; ! ismac () <*45507> +%!testif ; ! ismac () && ! ispc () <*45507> %! x = [1, -1, i, -i] .* 1e150; %! v = [0, pi, pi/2, pi/2]; %! assert (real (acos (x)), v); %!xtest <52627> -%! ## Same test code as above, but intended only for test statistics on Mac. -%! ## Mac trig/hyperbolic functions have huge tolerances. +%! ## Same test code as above, but intended only for test statistics on Mac and +%! ## Windows. Their trig/hyperbolic functions have huge tolerances. %! if (! ismac ()), return; endif %! x = [1, -1, i, -i] .* 1e150; %! v = [0, pi, pi/2, pi/2]; @@ -201,14 +201,14 @@ ## Test large magnitude arguments (bug #45507) ## Test fails with older versions of libm, solution is to upgrade. -%!testif ; ! ismac () <*45507> +%!testif ; ! ismac () && ! ispc () <*45507> %! x = [1, -1, i, -i] .* 1e150; %! v = [0, pi, pi/2, -pi/2]; %! assert (imag (acosh (x)), v); %!xtest <52627> -%! ## Same test code as above, but intended only for test statistics on Mac. -%! ## Mac trig/hyperbolic functions have huge tolerances. +%! ## Same test code as above, but intended only for test statistics on Mac and +%! ## Windows. Their trig/hyperbolic functions have huge tolerances. %! if (! ismac ()), return; endif %! x = [1, -1, i, -i] .* 1e150; %! v = [0, pi, pi/2, -pi/2]; @@ -329,14 +329,14 @@ ## Test large magnitude arguments (bug #45507) ## Test fails with older versions of libm, solution is to upgrade. -%!testif ; ! ismac () <*45507> +%!testif ; ! ismac () && ! ispc () <*45507> %! x = [1, -1, i, -i] .* 1e150; %! v = [pi/2, -pi/2, 0, -0]; %! assert (real (asin (x)), v); %!xtest <52627> -%! ## Same test code as above, but intended only for test statistics on Mac. -%! ## Mac trig/hyperbolic functions have huge tolerances. +%! ## Same test code as above, but intended only for test statistics on Mac and +%! ## Windows. Their trig/hyperbolic functions have huge tolerances. %! if (! ismac ()), return; endif %! x = [1, -1, i, -i] .* 1e150; %! v = [pi/2, -pi/2, 0, -0]; @@ -372,14 +372,14 @@ ## Test large magnitude arguments (bug #45507) ## Test fails with older versions of libm, solution is to upgrade. -%!testif ; ! ismac () <*45507> +%!testif ; ! ismac () && ! ispc () <*45507> %! x = [1, -1, i, -i] .* 1e150; %! v = [0, 0, pi/2, -pi/2]; %! assert (imag (asinh (x)), v); %!xtest <52627> -%! ## Same test code as above, but intended only for test statistics on Mac. -%! ## Mac trig/hyperbolic functions have huge tolerances. +%! ## Same test code as above, but intended only for test statistics on Mac and +%! ## Windows. Their trig/hyperbolic functions have huge tolerances. %! if (! ismac ()), return; endif %! x = [1, -1, i, -i] .* 1e150; %! v = [0, 0, pi/2, -pi/2];