changeset 32171:4555f9918009

test: Rewrite BIST tests incorrectly using %!shared construct (bug #64531) * error.tst, index.tst: Remove %!shared directive and replace with %!test where appropriate.
author Rik <rik@octave.org>
date Mon, 26 Jun 2023 13:18:15 -0700
parents cb56ab555113
children 71a792dfb05a
files test/error.tst test/index.tst
diffstat 2 files changed, 9 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/test/error.tst	Mon Jun 26 11:44:10 2023 -0700
+++ b/test/error.tst	Mon Jun 26 13:18:15 2023 -0700
@@ -66,7 +66,7 @@
 %! assert (warning ("query", "backtrace"), st);
 %! warning (ws.state, "backtrace");
 
-%!shared t1_opts, t2_opts, t1_id, t1_state, saved_opts, saved_id, saved_state
+%!test
 %! saved_opts = warning ();
 %! saved_id = {saved_opts.identifier};
 %! saved_state = {saved_opts.state};
--- a/test/index.tst	Mon Jun 26 11:44:10 2023 -0700
+++ b/test/index.tst	Mon Jun 26 13:18:15 2023 -0700
@@ -247,13 +247,13 @@
 %! x(false,[],false) = [];
 %! assert (x, y);
 
-%!shared x, y
+%!test
 %! y = ones (2, 2, 2);
 %! x = ones (2, 2, 2);
 %! x(false, 1) = [];
 %! assert (x, y);
 
-%!shared x, y
+%!test
 %! y = ones (2, 2, 2);
 %! x = ones (2, 2, 2);
 %! x(false, false) = [];
@@ -414,36 +414,36 @@
 %! x(:, [], false) = [];
 %! assert (x, y);
 
-%!shared x, y
+%!test
 %! y = ones (2, 2);
 %! x = ones (2, 2);
 %!error x(1, 1, []) = []
 
-%!shared x, y
+%!test
 %! y = ones (2, 2);
 %! x = ones (2, 2);
 %! x(false, false, 1) = [];
 %! assert (x, y);
 
-%!shared x, y
+%!test
 %! y = ones (2, 2);
 %! x = ones (2, 2);
 %! x(false, false, []) = [];
 %! assert (x, y);
 
-%!shared x, y
+%!test
 %! y = ones (2, 2);
 %! x = ones (2, 2);
 %! x(false, false, [], false) = [];
 %! assert (x, y);
 
-%!shared x, y
+%!test
 %! y = ones (2, 2);
 %! x = ones (2, 2);
 %! x(1, false, [], false) = [];
 %! assert (x, y);
 
-%!shared x, y
+%!test
 %! y = ones (2, 2);
 %! x = ones (2, 2);
 %! x(:, false, 1) = [];