changeset 25216:b72972ab83f1 stable

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.
author Rik <rik@octave.org>
date Wed, 11 Apr 2018 11:52:49 -0700
parents 7ca5f8c70879
children 0edb99ea10a8
files scripts/specfun/gammainc.m scripts/testfun/test.m test/classdef/classdef.tst test/jit.tst
diffstat 4 files changed, 11 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- 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);
 
--- 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.
--- 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'});
--- 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);