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
This commit is contained in:
Karl Wette 2017-01-01 19:06:51 +13:00
commit 9e66af3fef
99 changed files with 481 additions and 14 deletions

View file

@ -1,4 +1,7 @@
# file: runme.m # do not dump Octave core
if exist("crash_dumps_octave_core", "builtin")
crash_dumps_octave_core(0);
endif
# This file illustrates the cross language polymorphism using directors. # This file illustrates the cross language polymorphism using directors.

View file

@ -1,4 +1,7 @@
# file: runme.m # do not dump Octave core
if exist("crash_dumps_octave_core", "builtin")
crash_dumps_octave_core(0);
endif
# This file illustrates the proxy class C++ interface generated # This file illustrates the proxy class C++ interface generated
# by SWIG. # by SWIG.

View file

@ -1,4 +1,7 @@
# file: runme.m # do not dump Octave core
if exist("crash_dumps_octave_core", "builtin")
crash_dumps_octave_core(0);
endif
swigexample swigexample

View file

@ -1,4 +1,7 @@
# file: runme.m # do not dump Octave core
if exist("crash_dumps_octave_core", "builtin")
crash_dumps_octave_core(0);
endif
swigexample swigexample

View file

@ -1,4 +1,7 @@
# file: runme.m # do not dump Octave core
if exist("crash_dumps_octave_core", "builtin")
crash_dumps_octave_core(0);
endif
swigexample swigexample

View file

@ -1,4 +1,7 @@
# file: runme.m # do not dump Octave core
if exist("crash_dumps_octave_core", "builtin")
crash_dumps_octave_core(0);
endif
# This file illustrates the cross language polymorphism using directors. # This file illustrates the cross language polymorphism using directors.

View file

@ -1,4 +1,7 @@
# file: runme.m # do not dump Octave core
if exist("crash_dumps_octave_core", "builtin")
crash_dumps_octave_core(0);
endif
swigexample swigexample

View file

@ -1,4 +1,7 @@
# file: runme.m # do not dump Octave core
if exist("crash_dumps_octave_core", "builtin")
crash_dumps_octave_core(0);
endif
swigexample swigexample

View file

@ -1,3 +1,8 @@
# do not dump Octave core
if exist("crash_dumps_octave_core", "builtin")
crash_dumps_octave_core(0);
endif
# Operator overloading example # Operator overloading example
swigexample swigexample

View file

@ -1,4 +1,7 @@
# file: runme_args.m # do not dump Octave core
if exist("crash_dumps_octave_core", "builtin")
crash_dumps_octave_core(0);
endif
# load module # load module
clear all; clear all;

View file

@ -1,3 +1,8 @@
# do not dump Octave core
if exist("crash_dumps_octave_core", "builtin")
crash_dumps_octave_core(0);
endif
# Operator overloading example # Operator overloading example
swigexample swigexample

View file

@ -1,4 +1,7 @@
# file: runme.m # do not dump Octave core
if exist("crash_dumps_octave_core", "builtin")
crash_dumps_octave_core(0);
endif
swigexample; swigexample;

View file

@ -1,4 +1,7 @@
# file: runme.m # do not dump Octave core
if exist("crash_dumps_octave_core", "builtin")
crash_dumps_octave_core(0);
endif
# This file illustrates the manipulation of C++ references in Octave # This file illustrates the manipulation of C++ references in Octave

View file

@ -1,4 +1,7 @@
# file: runme.m # do not dump Octave core
if exist("crash_dumps_octave_core", "builtin")
crash_dumps_octave_core(0);
endif
swigexample swigexample

View file

@ -1,4 +1,7 @@
# file: runme.m # do not dump Octave core
if exist("crash_dumps_octave_core", "builtin")
crash_dumps_octave_core(0);
endif
swigexample swigexample

View file

@ -1,4 +1,7 @@
# file: runme.m # do not dump Octave core
if exist("crash_dumps_octave_core", "builtin")
crash_dumps_octave_core(0);
endif
swigexample swigexample

View file

@ -1,3 +1,8 @@
# do not dump Octave core
if exist("crash_dumps_octave_core", "builtin")
crash_dumps_octave_core(0);
endif
abstract_typedef2 abstract_typedef2
a = A_UF(); a = A_UF();

View file

@ -1,3 +1,8 @@
# do not dump Octave core
if exist("crash_dumps_octave_core", "builtin")
crash_dumps_octave_core(0);
endif
abstract_typedef abstract_typedef
e = Engine(); e = Engine();

View file

@ -1,3 +1,8 @@
# do not dump Octave core
if exist("crash_dumps_octave_core", "builtin")
crash_dumps_octave_core(0);
endif
abstract_virtual abstract_virtual

View file

@ -1,3 +1,8 @@
# do not dump Octave core
if exist("crash_dumps_octave_core", "builtin")
crash_dumps_octave_core(0);
endif
arrays_global arrays_global
arrays_global.cvar.array_i = arrays_global.cvar.array_const_i; arrays_global.cvar.array_i = arrays_global.cvar.array_const_i;

View file

@ -1,3 +1,8 @@
# do not dump Octave core
if exist("crash_dumps_octave_core", "builtin")
crash_dumps_octave_core(0);
endif
class_ignore class_ignore
a = class_ignore.Bar(); a = class_ignore.Bar();

View file

@ -1,3 +1,8 @@
# do not dump Octave core
if exist("crash_dumps_octave_core", "builtin")
crash_dumps_octave_core(0);
endif
complextest complextest
a = complex(-1,2); a = complex(-1,2);

View file

@ -1,3 +1,8 @@
# do not dump Octave core
if exist("crash_dumps_octave_core", "builtin")
crash_dumps_octave_core(0);
endif
constover constover
p = constover.test("test"); p = constover.test("test");

View file

@ -1,3 +1,8 @@
# do not dump Octave core
if exist("crash_dumps_octave_core", "builtin")
crash_dumps_octave_core(0);
endif
constructor_copy constructor_copy
f1 = Foo1(3); f1 = Foo1(3);

View file

@ -1,3 +1,8 @@
# do not dump Octave core
if exist("crash_dumps_octave_core", "builtin")
crash_dumps_octave_core(0);
endif
default_args default_args

View file

@ -1,3 +1,8 @@
# do not dump Octave core
if exist("crash_dumps_octave_core", "builtin")
crash_dumps_octave_core(0);
endif
default_constructor default_constructor
dc = default_constructor; dc = default_constructor;

View file

@ -1,3 +1,8 @@
# do not dump Octave core
if exist("crash_dumps_octave_core", "builtin")
crash_dumps_octave_core(0);
endif
director_abstract director_abstract
MyFoo=@() subclass(director_abstract.Foo(),@ping); MyFoo=@() subclass(director_abstract.Foo(),@ping);

View file

@ -1,3 +1,8 @@
# do not dump Octave core
if exist("crash_dumps_octave_core", "builtin")
crash_dumps_octave_core(0);
endif
director_classic director_classic
TargetLangPerson=@() subclass(Person(),'id',@(self) "TargetLangPerson"); TargetLangPerson=@() subclass(Person(),'id',@(self) "TargetLangPerson");

View file

@ -1,3 +1,8 @@
# do not dump Octave core
if exist("crash_dumps_octave_core", "builtin")
crash_dumps_octave_core(0);
endif
director_extend director_extend
MyObject=@() subclass(SpObject(),'getFoo',@(self) 123); MyObject=@() subclass(SpObject(),'getFoo',@(self) 123);

View file

@ -1,3 +1,8 @@
# do not dump Octave core
if exist("crash_dumps_octave_core", "builtin")
crash_dumps_octave_core(0);
endif
director_stl director_stl
MyFoo=@() subclass(director_stl.Foo(),\ MyFoo=@() subclass(director_stl.Foo(),\

View file

@ -1,3 +1,8 @@
# do not dump Octave core
if exist("crash_dumps_octave_core", "builtin")
crash_dumps_octave_core(0);
endif
director_string director_string

View file

@ -1,3 +1,8 @@
# do not dump Octave core
if exist("crash_dumps_octave_core", "builtin")
crash_dumps_octave_core(0);
endif
director_wstring director_wstring

View file

@ -1,3 +1,8 @@
# do not dump Octave core
if exist("crash_dumps_octave_core", "builtin")
crash_dumps_octave_core(0);
endif
dynamic_cast dynamic_cast
f = dynamic_cast.Foo(); f = dynamic_cast.Foo();

View file

@ -1,2 +1,7 @@
# do not dump Octave core
if exist("crash_dumps_octave_core", "builtin")
crash_dumps_octave_core(0);
endif
empty_c empty_c

View file

@ -1,2 +1,7 @@
# do not dump Octave core
if exist("crash_dumps_octave_core", "builtin")
crash_dumps_octave_core(0);
endif
empty empty

View file

@ -1,3 +1,8 @@
# do not dump Octave core
if exist("crash_dumps_octave_core", "builtin")
crash_dumps_octave_core(0);
endif
enum_template enum_template
if (enum_template.MakeETest() != 1) if (enum_template.MakeETest() != 1)

View file

@ -1,3 +1,8 @@
# do not dump Octave core
if exist("crash_dumps_octave_core", "builtin")
crash_dumps_octave_core(0);
endif
exception_order exception_order
function check_lasterror(expected) function check_lasterror(expected)

View file

@ -1,3 +1,8 @@
# do not dump Octave core
if exist("crash_dumps_octave_core", "builtin")
crash_dumps_octave_core(0);
endif
extend_template_ns extend_template_ns
f = Foo_One(); f = Foo_One();

View file

@ -1,3 +1,8 @@
# do not dump Octave core
if exist("crash_dumps_octave_core", "builtin")
crash_dumps_octave_core(0);
endif
friends friends
a = friends.A(2); a = friends.A(2);

View file

@ -1,3 +1,8 @@
# do not dump Octave core
if exist("crash_dumps_octave_core", "builtin")
crash_dumps_octave_core(0);
endif
global_ns_arg global_ns_arg
a = foo(1); a = foo(1);

View file

@ -1,3 +1,8 @@
# do not dump Octave core
if exist("crash_dumps_octave_core", "builtin")
crash_dumps_octave_core(0);
endif
grouping grouping
x = grouping.test1(42); x = grouping.test1(42);

View file

@ -1,3 +1,8 @@
# do not dump Octave core
if exist("crash_dumps_octave_core", "builtin")
crash_dumps_octave_core(0);
endif
input input
f = Foo(); f = Foo();

View file

@ -1,3 +1,8 @@
# do not dump Octave core
if exist("crash_dumps_octave_core", "builtin")
crash_dumps_octave_core(0);
endif
li_attribute li_attribute
aa = li_attribute.A(1,2,3); aa = li_attribute.A(1,2,3);

View file

@ -1,3 +1,8 @@
# do not dump Octave core
if exist("crash_dumps_octave_core", "builtin")
crash_dumps_octave_core(0);
endif
1; 1;
li_boost_shared_ptr; li_boost_shared_ptr;

View file

@ -1,3 +1,8 @@
# do not dump Octave core
if exist("crash_dumps_octave_core", "builtin")
crash_dumps_octave_core(0);
endif
li_carrays_cpp li_carrays_cpp
d = doubleArray(10); d = doubleArray(10);

View file

@ -1,3 +1,8 @@
# do not dump Octave core
if exist("crash_dumps_octave_core", "builtin")
crash_dumps_octave_core(0);
endif
li_carrays li_carrays
d = doubleArray(10); d = doubleArray(10);

View file

@ -1,3 +1,8 @@
# do not dump Octave core
if exist("crash_dumps_octave_core", "builtin")
crash_dumps_octave_core(0);
endif
li_cmalloc li_cmalloc
p = malloc_int(); p = malloc_int();

View file

@ -1,3 +1,8 @@
# do not dump Octave core
if exist("crash_dumps_octave_core", "builtin")
crash_dumps_octave_core(0);
endif
li_cpointer li_cpointer

View file

@ -1,3 +1,8 @@
# do not dump Octave core
if exist("crash_dumps_octave_core", "builtin")
crash_dumps_octave_core(0);
endif
li_cstring li_cstring

View file

@ -1,3 +1,8 @@
# do not dump Octave core
if exist("crash_dumps_octave_core", "builtin")
crash_dumps_octave_core(0);
endif
li_cwstring li_cwstring
if (count("ab\0ab\0ab\0", 0) != 3) if (count("ab\0ab\0ab\0", 0) != 3)

View file

@ -1,3 +1,8 @@
# do not dump Octave core
if exist("crash_dumps_octave_core", "builtin")
crash_dumps_octave_core(0);
endif
li_factory li_factory
circle = Geometry_create(Geometry.CIRCLE); circle = Geometry_create(Geometry.CIRCLE);

View file

@ -1,3 +1,8 @@
# do not dump Octave core
if exist("crash_dumps_octave_core", "builtin")
crash_dumps_octave_core(0);
endif
li_implicit li_implicit
b = B(); b = B();
ai = A(1); ai = A(1);

View file

@ -1,3 +1,8 @@
# do not dump Octave core
if exist("crash_dumps_octave_core", "builtin")
crash_dumps_octave_core(0);
endif
li_std_pair_extra li_std_pair_extra
p = {1,2}; p = {1,2};

View file

@ -1,3 +1,8 @@
# do not dump Octave core
if exist("crash_dumps_octave_core", "builtin")
crash_dumps_octave_core(0);
endif
li_std_vector_enum li_std_vector_enum
function check(a, b) function check(a, b)

View file

@ -1,3 +1,8 @@
# do not dump Octave core
if exist("crash_dumps_octave_core", "builtin")
crash_dumps_octave_core(0);
endif
li_std_wstring li_std_wstring
x="h"; x="h";

View file

@ -1,3 +1,8 @@
# do not dump Octave core
if exist("crash_dumps_octave_core", "builtin")
crash_dumps_octave_core(0);
endif
minherit minherit
a = minherit.Foo(); a = minherit.Foo();

View file

@ -1,3 +1,8 @@
# do not dump Octave core
if exist("crash_dumps_octave_core", "builtin")
crash_dumps_octave_core(0);
endif
mod_a mod_a
mod_b mod_b

View file

@ -1,3 +1,8 @@
# do not dump Octave core
if exist("crash_dumps_octave_core", "builtin")
crash_dumps_octave_core(0);
endif
multi_import_a; multi_import_a;
multi_import_b; multi_import_b;

View file

@ -1,3 +1,8 @@
# do not dump Octave core
if exist("crash_dumps_octave_core", "builtin")
crash_dumps_octave_core(0);
endif
naturalvar naturalvar
f = Foo(); f = Foo();

View file

@ -1,3 +1,8 @@
# do not dump Octave core
if exist("crash_dumps_octave_core", "builtin")
crash_dumps_octave_core(0);
endif
null_pointer; null_pointer;
assert(func([])); assert(func([]));

View file

@ -1,3 +1,8 @@
# do not dump Octave core
if exist("crash_dumps_octave_core", "builtin")
crash_dumps_octave_core(0);
endif
octave_cell_deref; octave_cell_deref;
assert(func("hello")); assert(func("hello"));

View file

@ -1,3 +1,8 @@
# do not dump Octave core
if exist("crash_dumps_octave_core", "builtin")
crash_dumps_octave_core(0);
endif
overload_complicated overload_complicated
pInt = None; pInt = None;

View file

@ -1,3 +1,8 @@
# do not dump Octave core
if exist("crash_dumps_octave_core", "builtin")
crash_dumps_octave_core(0);
endif
overload_extend_c overload_extend_c
f = overload_extend_c.Foo(); f = overload_extend_c.Foo();

View file

@ -1,3 +1,8 @@
# do not dump Octave core
if exist("crash_dumps_octave_core", "builtin")
crash_dumps_octave_core(0);
endif
overload_extend overload_extend
f = overload_extend.Foo(); f = overload_extend.Foo();

View file

@ -1,3 +1,8 @@
# do not dump Octave core
if exist("crash_dumps_octave_core", "builtin")
crash_dumps_octave_core(0);
endif
overload_simple_cast overload_simple_cast
Ai=@(x) subclass('x',x,'__int',@(self) self.x); Ai=@(x) subclass('x',x,'__int',@(self) self.x);

View file

@ -1,3 +1,8 @@
# do not dump Octave core
if exist("crash_dumps_octave_core", "builtin")
crash_dumps_octave_core(0);
endif
overload_subtype overload_subtype
f = Foo(); f = Foo();

View file

@ -1,3 +1,8 @@
# do not dump Octave core
if exist("crash_dumps_octave_core", "builtin")
crash_dumps_octave_core(0);
endif
preproc preproc
if (preproc.cvar.endif != 1) if (preproc.cvar.endif != 1)

View file

@ -1,3 +1,8 @@
# do not dump Octave core
if exist("crash_dumps_octave_core", "builtin")
crash_dumps_octave_core(0);
endif
refcount refcount
# #
# very innocent example # very innocent example

View file

@ -1,3 +1,8 @@
# do not dump Octave core
if exist("crash_dumps_octave_core", "builtin")
crash_dumps_octave_core(0);
endif
ret_by_value ret_by_value
a = ret_by_value.get_test(); a = ret_by_value.get_test();

View file

@ -1,3 +1,8 @@
# do not dump Octave core
if exist("crash_dumps_octave_core", "builtin")
crash_dumps_octave_core(0);
endif
smart_pointer_extend smart_pointer_extend
f = Foo(); f = Foo();

View file

@ -1,3 +1,8 @@
# do not dump Octave core
if exist("crash_dumps_octave_core", "builtin")
crash_dumps_octave_core(0);
endif
smart_pointer_overload smart_pointer_overload
f = Foo(); f = Foo();

View file

@ -1,3 +1,8 @@
# do not dump Octave core
if exist("crash_dumps_octave_core", "builtin")
crash_dumps_octave_core(0);
endif
smart_pointer_rename smart_pointer_rename
f = Foo(); f = Foo();

View file

@ -1,3 +1,8 @@
# do not dump Octave core
if exist("crash_dumps_octave_core", "builtin")
crash_dumps_octave_core(0);
endif
smart_pointer_simple smart_pointer_simple
f = Foo(); f = Foo();

View file

@ -1,3 +1,8 @@
# do not dump Octave core
if exist("crash_dumps_octave_core", "builtin")
crash_dumps_octave_core(0);
endif
smart_pointer_typedef smart_pointer_typedef
f = Foo(); f = Foo();

View file

@ -1,3 +1,8 @@
# do not dump Octave core
if exist("crash_dumps_octave_core", "builtin")
crash_dumps_octave_core(0);
endif
sneaky1 sneaky1
x = sneaky1.add(3,4); x = sneaky1.add(3,4);
y = sneaky1.subtract(3,4); y = sneaky1.subtract(3,4);

View file

@ -1,3 +1,8 @@
# do not dump Octave core
if exist("crash_dumps_octave_core", "builtin")
crash_dumps_octave_core(0);
endif
static_const_member_2 static_const_member_2
c = Test_int(); c = Test_int();

View file

@ -1,3 +1,8 @@
# do not dump Octave core
if exist("crash_dumps_octave_core", "builtin")
crash_dumps_octave_core(0);
endif
std_containers std_containers

View file

@ -1,3 +1,8 @@
# do not dump Octave core
if exist("crash_dumps_octave_core", "builtin")
crash_dumps_octave_core(0);
endif
struct_value struct_value
b = struct_value.Bar(); b = struct_value.Bar();

View file

@ -1,3 +1,8 @@
# do not dump Octave core
if exist("crash_dumps_octave_core", "builtin")
crash_dumps_octave_core(0);
endif
swigobject swigobject
a = A(); a = A();

View file

@ -1,3 +1,8 @@
# do not dump Octave core
if exist("crash_dumps_octave_core", "builtin")
crash_dumps_octave_core(0);
endif
template_default_arg template_default_arg

View file

@ -1,3 +1,8 @@
# do not dump Octave core
if exist("crash_dumps_octave_core", "builtin")
crash_dumps_octave_core(0);
endif
template_extend1 template_extend1
a = template_extend1.lBaz(); a = template_extend1.lBaz();

View file

@ -1,3 +1,8 @@
# do not dump Octave core
if exist("crash_dumps_octave_core", "builtin")
crash_dumps_octave_core(0);
endif
template_extend2 template_extend2
a = template_extend2.lBaz(); a = template_extend2.lBaz();

View file

@ -1,3 +1,8 @@
# do not dump Octave core
if exist("crash_dumps_octave_core", "builtin")
crash_dumps_octave_core(0);
endif
template_inherit template_inherit
a = FooInt(); a = FooInt();
b = FooDouble(); b = FooDouble();

View file

@ -1,3 +1,8 @@
# do not dump Octave core
if exist("crash_dumps_octave_core", "builtin")
crash_dumps_octave_core(0);
endif
template_matrix template_matrix
passVector([1,2,3]); passVector([1,2,3]);
passMatrix({[1,2],[1,2,3]}); passMatrix({[1,2],[1,2,3]});

View file

@ -1,3 +1,8 @@
# do not dump Octave core
if exist("crash_dumps_octave_core", "builtin")
crash_dumps_octave_core(0);
endif
template_ns4 template_ns4
d = make_Class_DD(); d = make_Class_DD();

View file

@ -1,3 +1,8 @@
# do not dump Octave core
if exist("crash_dumps_octave_core", "builtin")
crash_dumps_octave_core(0);
endif
template_opaque template_opaque
v = template_opaque.OpaqueVectorType(10); v = template_opaque.OpaqueVectorType(10);

View file

@ -1,3 +1,8 @@
# do not dump Octave core
if exist("crash_dumps_octave_core", "builtin")
crash_dumps_octave_core(0);
endif
template_ref_type template_ref_type
xr = template_ref_type.XC(); xr = template_ref_type.XC();

View file

@ -1,3 +1,8 @@
# do not dump Octave core
if exist("crash_dumps_octave_core", "builtin")
crash_dumps_octave_core(0);
endif
template_static template_static
Foo_bar_double(1); Foo_bar_double(1);

View file

@ -1,3 +1,8 @@
# do not dump Octave core
if exist("crash_dumps_octave_core", "builtin")
crash_dumps_octave_core(0);
endif
template_typedef_cplx4 template_typedef_cplx4
# #

View file

@ -1,3 +1,8 @@
# do not dump Octave core
if exist("crash_dumps_octave_core", "builtin")
crash_dumps_octave_core(0);
endif
template_typedef_cplx2 template_typedef_cplx2
template_typedef_import template_typedef_import

View file

@ -1,3 +1,8 @@
# do not dump Octave core
if exist("crash_dumps_octave_core", "builtin")
crash_dumps_octave_core(0);
endif
typedef_class typedef_class
a = typedef_class.RealA(); a = typedef_class.RealA();

View file

@ -1,3 +1,8 @@
# do not dump Octave core
if exist("crash_dumps_octave_core", "builtin")
crash_dumps_octave_core(0);
endif
typedef_inherit typedef_inherit
a = typedef_inherit.Foo(); a = typedef_inherit.Foo();

View file

@ -1,3 +1,8 @@
# do not dump Octave core
if exist("crash_dumps_octave_core", "builtin")
crash_dumps_octave_core(0);
endif
typename typename
f = typename.Foo(); f = typename.Foo();
b = typename.Bar(); b = typename.Bar();

View file

@ -1,3 +1,8 @@
# do not dump Octave core
if exist("crash_dumps_octave_core", "builtin")
crash_dumps_octave_core(0);
endif
using1 using1
if (using1.spam(37) != 37) if (using1.spam(37) != 37)

View file

@ -1,3 +1,8 @@
# do not dump Octave core
if exist("crash_dumps_octave_core", "builtin")
crash_dumps_octave_core(0);
endif
using2 using2
if (using2.spam(37) != 37) if (using2.spam(37) != 37)

View file

@ -1,3 +1,8 @@
# do not dump Octave core
if exist("crash_dumps_octave_core", "builtin")
crash_dumps_octave_core(0);
endif
using_composition using_composition
f = FooBar(); f = FooBar();

View file

@ -1,3 +1,8 @@
# do not dump Octave core
if exist("crash_dumps_octave_core", "builtin")
crash_dumps_octave_core(0);
endif
using_extend using_extend
f = FooBar(); f = FooBar();

View file

@ -1,3 +1,8 @@
# do not dump Octave core
if exist("crash_dumps_octave_core", "builtin")
crash_dumps_octave_core(0);
endif
using_protected using_protected
f = FooBar(); f = FooBar();

View file

@ -1,3 +1,8 @@
# do not dump Octave core
if exist("crash_dumps_octave_core", "builtin")
crash_dumps_octave_core(0);
endif
voidtest voidtest
voidtest.globalfunc(); voidtest.globalfunc();