swig/Examples/test-suite/octave/multi_import_runme.m
Karl Wette 9e66af3fef Octave: do not dump Octave core in examples/test suite scripts
- If Octave segfaults during cleanup, it usually cannot dump its core
  and therefore just freezes, which hold up e.g Travis build jobs
2017-01-01 19:06:51 +13:00

29 lines
394 B
Objective-C

# do not dump Octave core
if exist("crash_dumps_octave_core", "builtin")
crash_dumps_octave_core(0);
endif
multi_import_a;
multi_import_b;
x = multi_import_b.XXX();
if (x.testx() != 0)
error
endif
y = multi_import_b.YYY();
if (y.testx() != 0)
error
endif
if (y.testy() != 1)
error
endif
z = multi_import_a.ZZZ();
if (z.testx() != 0)
error
endif
if (z.testz() != 2)
error
endif