Improve Scilab test suite with start/quit scripts + remove useless display.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-sploving@12266 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
2625a29a96
commit
f7d5a8cccc
22 changed files with 273 additions and 125 deletions
|
|
@ -1,15 +1,31 @@
|
|||
exec loader.sce;
|
||||
exec("swigtest.start", -1);
|
||||
|
||||
x = makeFoo();
|
||||
if fooCount() <> 1 then pause, end
|
||||
try
|
||||
x = makeFoo();
|
||||
catch
|
||||
swigtesterror();
|
||||
end
|
||||
if fooCount() <> 1 then swigtesterror(); end
|
||||
|
||||
y = makeFoo();
|
||||
if fooCount() <> 2 then pause, end
|
||||
try
|
||||
y = makeFoo();
|
||||
catch
|
||||
swigtesterror();
|
||||
end
|
||||
if fooCount() <> 2 then swigtesterror(); end
|
||||
|
||||
delete_Foo(x);
|
||||
if fooCount() <> 1 then pause, end
|
||||
try
|
||||
delete_Foo(x);
|
||||
catch
|
||||
swigtesterror();
|
||||
end
|
||||
if fooCount() <> 1 then swigtesterror(); end
|
||||
|
||||
delete_Foo(y);
|
||||
if fooCount() <> 0 then pause, end
|
||||
try
|
||||
delete_Foo(y);
|
||||
catch
|
||||
swigtesterror();
|
||||
end
|
||||
if fooCount() <> 0 then swigtesterror(); end
|
||||
|
||||
exit
|
||||
exec("swigtest.quit", -1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue