Mercurial > hg > octave-nkf
changeset 18994:3af93835be56
Fix jit tests
* test/jit.tst: Fix typo and allow one jit_failure exception for tests with
unknown functions or variables
author | Stefan Mahr <dac922@gmx.de> |
---|---|
date | Sun, 16 Mar 2014 23:33:49 +0100 |
parents | 0dae39867b2b |
children | 4a4edf0f2077 |
files | test/jit.tst |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/test/jit.tst +++ b/test/jit.tst @@ -444,7 +444,7 @@ %! endwhile %! assert (i == 10); %! assert (a == 10); -%! jit_failure_count (0) +%! assert (jit_failure_count, 0); %!testif HAVE_LLVM %! jit_failure_count (0) @@ -487,7 +487,7 @@ %! test_compute_idom (); %! end_try_catch %! assert (! isempty (lasterr ())); -%! assert (jit_failure_count, 0); +%! assert (jit_failure_count, 1); %!function x = test_overload (a) %! while (1) @@ -560,7 +560,7 @@ %! test_undef (); %! end_try_catch %! assert (strncmp (lasterr (), "'XXX' undefined near", 20)); -%! assert (jit_failure_count, 0); +%! assert (jit_failure_count, 1); %!shared id %! id = @(x) x;