# HG changeset patch # User Rik # Date 1523472769 25200 # Node ID b72972ab83f18e847cba3c24897579cd1b6d766e # Parent 7ca5f8c7087915f6c7f62954d5b3c7136125b801 test: Add bug IDs to failing %!xtest blocks. * gammainc.m, test.m, classdef.tst: Add bug ID to failing %!xtest blocks. * jit.tst: Add bug ID to failing %!xtest blocks. Add code to immediately exit from test if jit is not enabled. Need to do this because there is no %!xtestif keyword. diff -r 7ca5f8c70879 -r b72972ab83f1 scripts/specfun/gammainc.m --- a/scripts/specfun/gammainc.m Wed Apr 11 11:19:18 2018 -0700 +++ b/scripts/specfun/gammainc.m Wed Apr 11 11:52:49 2018 -0700 @@ -519,8 +519,7 @@ %! y_exp = 9.995001666250085e-04; %! assert (gammainc (1/1000, 1), y_exp, -eps); -## FIXME: should this be tagged with a bug report number? -%!xtest +%!xtest <53612> %! assert (gammainc (-20, 1.1, "upper"), ... %! 6.50986687074979e8 + 2.11518396291149e8*i, -1e-13); diff -r 7ca5f8c70879 -r b72972ab83f1 scripts/testfun/test.m --- a/scripts/testfun/test.m Wed Apr 11 11:19:18 2018 -0700 +++ b/scripts/testfun/test.m Wed Apr 11 11:52:49 2018 -0700 @@ -1010,7 +1010,7 @@ ## Test 'xtest' keyword %!xtest %! assert (1, 1); # Test passes -%!xtest +%!xtest <53613> %! assert (0, 1); # Test fails ## Test comment block. It can contain anything. diff -r 7ca5f8c70879 -r b72972ab83f1 test/classdef/classdef.tst --- a/test/classdef/classdef.tst Wed Apr 11 11:19:18 2018 -0700 +++ b/test/classdef/classdef.tst Wed Apr 11 11:52:49 2018 -0700 @@ -48,7 +48,7 @@ %!assert (p.principle, 50e3) %!assert (p.amount, amt, eps ()) %!assert (amount (p), amt, eps ()) -%!xtest +%!xtest <53614> %! assert (properties (p), {'rate'; 'term'; 'principle'}); %!test <42510> %! assert (methods (p), {'amount'; 'foo_value_class'}); diff -r 7ca5f8c70879 -r b72972ab83f1 test/jit.tst --- a/test/jit.tst Wed Apr 11 11:19:18 2018 -0700 +++ b/test/jit.tst Wed Apr 11 11:52:49 2018 -0700 @@ -540,9 +540,11 @@ %! assert (b, 1); %! assert (jit_failcnt, 0); -%!xtest +%!xtest <53615> %! ## FIXME: No support for functions with complex input prototypes -%! ## testif HAVE_LLVM +%! if (! __have_feature__ ("ENABLE_JIT")) +%! return; +%! endif %! jit_failcnt (0); %! a = [1+1i 1+2i]; %! b = 0; @@ -571,9 +573,11 @@ %!shared id %! id = @(x) x; -%!xtest +%!xtest <53615> %! ## FIXME: No support for functions with complex input prototypes -%! ## testif HAVE_LLVM +%! if (! __have_feature__ ("ENABLE_JIT")) +%! return; +%! endif %! jit_failcnt (0); %! assert (id (1), 1); %! assert (id (1+1i), 1+1i);