changeset 32291:557f0edeb210

test: Avoid test suite error when configured with `--disable-64`. * test/compile/bytecode.tst: As suggested by @jwe on Discourse, adapt pattern to match for 64-bit and 32-bit Octave indices. See: https://octave.discourse.group/t/wip-stack-vm-for-octave/2884/144
author Markus Mützel <markus.muetzel@gmx.de>
date Fri, 08 Sep 2023 16:30:48 +0200
parents a81a6fb82c0e
children 8738713f0f90
files test/compile/bytecode.tst
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/test/compile/bytecode.tst	Fri Sep 08 15:33:36 2023 +0200
+++ b/test/compile/bytecode.tst	Fri Sep 08 16:30:48 2023 +0200
@@ -432,7 +432,7 @@
 %! fail ("bytecode_errors (6)", ...
 %!       'a\(3\): out of bound 2 \(dimensions are 1x2\)');
 %! fail ("bytecode_errors (7)", ...
-%!       'a\(-1\): subscripts must be either integers 1 to \(2\^63\)-1 or logicals');
+%!       'a\(-1\): subscripts must be either integers 1 to \(2\^(31|63)\)-1 or logicals');
 %! fail ("bytecode_errors (8)", ...
 %!       'operator \+: nonconformant arguments \(op1 is 1x3, op2 is 1x2\)');
 %!
@@ -454,7 +454,7 @@
 %! fail ("bytecode_errors (6)", ...
 %!       'a\(3\): out of bound 2 \(dimensions are 1x2\)');
 %! fail ("bytecode_errors (7)", ...
-%!       'a\(-1\): subscripts must be either integers 1 to \(2\^63\)-1 or logicals');
+%!       'a\(-1\): subscripts must be either integers 1 to \(2\^(31|63)\)-1 or logicals');
 %! fail ("bytecode_errors (8)", ...
 %!       'operator \+: nonconformant arguments \(op1 is 1x3, op2 is 1x2\)');