scilab: update null_pointer test ([] is no more null pointer use swig_ptr(0))

This commit is contained in:
Simon Marchetto 2014-03-28 15:11:47 +01:00
commit fa834b506f

View file

@ -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);