Mercurial > octave-nkf
diff test/jit.tst @ 18839: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 | 421bed6994f0 |
children | 0e1f5a750d00 |
line wrap: on
line diff
--- a/test/jit.tst Tue Mar 18 20:59:04 2014 +0100 +++ b/test/jit.tst Sun Mar 16 23:33:49 2014 +0100 @@ -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;