summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafael Laboissière <rafael@debian.org>2023-12-07 03:05:19 -0300
committerRafael Laboissière <rafael@debian.org>2023-12-07 03:05:19 -0300
commit6e1b193838a252d42bcce201fd19df284c727599 (patch)
tree4725dfecb47eec758428c5a8c3732eb44ba963af
parente73bf9c7b36184f5eef57be1a04deda96e59284c (diff)
d/check.m: Redefine clear function
This is necessary because some test scripts test/*.m issue the clear command and this interferes with the way dh_octave-check works. Gbp-Dch: Full Closes: #1057588
-rw-r--r--debian/check.m4
1 files changed, 4 insertions, 0 deletions
diff --git a/debian/check.m b/debian/check.m
index 632b0fe..63a586a 100644
--- a/debian/check.m
+++ b/debian/check.m
@@ -2,7 +2,11 @@
# only run tests that do not require network access for downloading files
cd test
+function clear(varargin)
+endfunction
+
# No for-loop, as the test files call clean()
+
file = 'test_mex_accuracy.m';
disp(['Testing ', file]);
source(file);