Mercurial > octave
comparison test/jit.tst @ 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 | 6652d3823428 |
children | 00f796120a6d |
comparison
equal
deleted
inserted
replaced
25215:7ca5f8c70879 | 25216:b72972ab83f1 |
---|---|
538 %! endfor | 538 %! endfor |
539 %! assert (a, 2000); | 539 %! assert (a, 2000); |
540 %! assert (b, 1); | 540 %! assert (b, 1); |
541 %! assert (jit_failcnt, 0); | 541 %! assert (jit_failcnt, 0); |
542 | 542 |
543 %!xtest | 543 %!xtest <53615> |
544 %! ## FIXME: No support for functions with complex input prototypes | 544 %! ## FIXME: No support for functions with complex input prototypes |
545 %! ## testif HAVE_LLVM | 545 %! if (! __have_feature__ ("ENABLE_JIT")) |
546 %! return; | |
547 %! endif | |
546 %! jit_failcnt (0); | 548 %! jit_failcnt (0); |
547 %! a = [1+1i 1+2i]; | 549 %! a = [1+1i 1+2i]; |
548 %! b = 0; | 550 %! b = 0; |
549 %! while (1) | 551 %! while (1) |
550 %! b = a(1); | 552 %! b = a(1); |
569 %! assert (jit_failcnt, 1); | 571 %! assert (jit_failcnt, 1); |
570 | 572 |
571 %!shared id | 573 %!shared id |
572 %! id = @(x) x; | 574 %! id = @(x) x; |
573 | 575 |
574 %!xtest | 576 %!xtest <53615> |
575 %! ## FIXME: No support for functions with complex input prototypes | 577 %! ## FIXME: No support for functions with complex input prototypes |
576 %! ## testif HAVE_LLVM | 578 %! if (! __have_feature__ ("ENABLE_JIT")) |
579 %! return; | |
580 %! endif | |
577 %! jit_failcnt (0); | 581 %! jit_failcnt (0); |
578 %! assert (id (1), 1); | 582 %! assert (id (1), 1); |
579 %! assert (id (1+1i), 1+1i); | 583 %! assert (id (1+1i), 1+1i); |
580 %! assert (id (1, 2), 1); | 584 %! assert (id (1, 2), 1); |
581 %! assert (jit_failcnt, 0); | 585 %! assert (jit_failcnt, 0); |