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);
|
||||
|
||||
|
||||
try
|
||||
p = getnull();
|
||||
if func(p) = %F then swigtesterror(); end
|
||||
if func([]) = %F then swigtesterror(); end
|
||||
catch
|
||||
swigtesterror();
|
||||
end
|
||||
|
||||
p = getnull();
|
||||
checkequal(swig_this(p), 0, "swig_this(p)");
|
||||
checkequal(func(p), %T, "func(p)");
|
||||
|
||||
exec("swigtest.quit", -1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue