Add catches_strings test to test throws char * typemap
This commit is contained in:
parent
034e2358f9
commit
4a29229bab
21 changed files with 286 additions and 0 deletions
10
Examples/test-suite/scilab/catches_strings_runme.sci
Normal file
10
Examples/test-suite/scilab/catches_strings_runme.sci
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
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
|
||||
|
||||
exec("swigtest.quit", -1);
|
||||
Loading…
Add table
Add a link
Reference in a new issue