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