scilab: fix tests returning wrong error code

This commit is contained in:
Simon Marchetto 2014-09-24 12:24:41 +02:00
commit b42375a257
3 changed files with 14 additions and 14 deletions

View file

@ -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, 20010, cmd + ': ierr');
checkequal(lasterror(), 'SWIG/Scilab: ' + expected_error_msg, cmd + ': msg');
endfunction