1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
exec("swigtest.start", -1);
ierr = execstr("StringsThrower_charstring()", 'errcatch');
checkequal(ierr, 20000, "wrong/no exception thrown")
if (strstr(lasterror(), "charstring message") == '')
printf("Should have thrown an exception")
exit(1)
end
ierr = execstr("StringsThrower_stdstring()", 'errcatch');
checkequal(ierr, 20000, "wrong/no exception thrown")
if (strstr(lasterror(), "stdstring message") == '')
printf("Should have thrown an exception")
exit(1)
end
exec("swigtest.quit", -1);
|