Scilab: display test error line number
This commit is contained in:
parent
5c7092e2cc
commit
78738b23b8
1 changed files with 6 additions and 1 deletions
|
|
@ -35,6 +35,11 @@ end
|
|||
|
||||
// Error management function
|
||||
function swigtesterror()
|
||||
mfprintf(0, "*** TEST FAILED ***\n")
|
||||
[lines, names] = where();
|
||||
if size(lines, '*') > 1
|
||||
mfprintf(0, "*** TEST FAILED (at line %d) ***\n", lines(2));
|
||||
else
|
||||
mfprintf(0, "*** TEST FAILED ***\n");
|
||||
end;
|
||||
exit(1)
|
||||
endfunction
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue