summaryrefslogtreecommitdiff
path: root/Examples/octave
diff options
context:
space:
mode:
authorKarl Wette <karl.wette@gmail.com>2012-05-24 21:18:50 +0000
committerKarl Wette <karl.wette@gmail.com>2012-05-24 21:18:50 +0000
commita276c0b45ab4afc113666b7e491a1e5be903e3ff (patch)
treec0fd72d39ebc8a69e38ce7cb1463f1905f41f84b /Examples/octave
parent76a115ea41d1320e1243003cf119bdacc6c5425e (diff)
downloadswig-a276c0b45ab4afc113666b7e491a1e5be903e3ff.tar.gz
[octave] skip part of module_load test for older Octaves
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13115 626c5289-ae23-0410-ae9c-e8d60b6d4f22
Diffstat (limited to 'Examples/octave')
-rw-r--r--Examples/octave/module_load/runme.m6
1 files changed, 6 insertions, 0 deletions
diff --git a/Examples/octave/module_load/runme.m b/Examples/octave/module_load/runme.m
index 4942a02de..16b437ee8 100644
--- a/Examples/octave/module_load/runme.m
+++ b/Examples/octave/module_load/runme.m
@@ -89,6 +89,12 @@ testme
testme
clear all
+# octave 3.0.5 randomly crashes on the remaining tests, so skip them
+api_version = sscanf(octave_config_info("api_version"), "api-v%i");
+if api_version < 37
+ exit
+endif
+
# access module with no cvar, no global load
example2 = example2;
assert(example2.ivar == example2.ifunc());