scilab: fix tests returning wrong error code
This commit is contained in:
parent
a2c2aaec80
commit
b42375a257
3 changed files with 14 additions and 14 deletions
|
|
@ -2,7 +2,7 @@ exec("swigtest.start", -1);
|
|||
|
||||
function checkException(cmd, expected_error_msg)
|
||||
ierr = execstr(cmd, 'errcatch');
|
||||
checkequal(ierr, 999, cmd + ': ierr');
|
||||
checkequal(ierr, 20000, cmd + ': ierr');
|
||||
checkequal(lasterror(), 'SWIG/Scilab: ' + expected_error_msg, cmd + ': msg');
|
||||
endfunction
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue