scilab: update null_pointer test ([] is no more null pointer use swig_ptr(0))
This commit is contained in:
parent
675c4cee0f
commit
fa834b506f
1 changed files with 3 additions and 9 deletions
|
|
@ -1,13 +1,7 @@
|
||||||
exec("swigtest.start", -1);
|
exec("swigtest.start", -1);
|
||||||
|
|
||||||
|
p = getnull();
|
||||||
try
|
checkequal(swig_this(p), 0, "swig_this(p)");
|
||||||
p = getnull();
|
checkequal(func(p), %T, "func(p)");
|
||||||
if func(p) = %F then swigtesterror(); end
|
|
||||||
if func([]) = %F then swigtesterror(); end
|
|
||||||
catch
|
|
||||||
swigtesterror();
|
|
||||||
end
|
|
||||||
|
|
||||||
|
|
||||||
exec("swigtest.quit", -1);
|
exec("swigtest.quit", -1);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue