1 // =============================================================================
2 // Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3 // Copyright (C) 2005-2008 - INRIA - Serge Steer
5 // This file is distributed under the same license as the Scilab package.
6 // =============================================================================
8 // <-- Non-regression test for bug 2072 -->
10 // <-- Bugzilla URL -->
11 // http://bugzilla.scilab.org/show_bug.cgi?id=2072
13 // <-- Short Description -->
14 // incorrect clause uncorrectly handled under errcatch
16 // <-- CLI SHELL MODE -->
18 mkdir(TMPDIR,'b2072');
20 txt=['function test()'
28 mputl(txt,TMPDIR+'/b2072/test.sci');
29 txt=['function testOK()'
33 mputl(txt,TMPDIR+'/b2072/testOK.sci');
35 if execstr('exec(TMPDIR+''/b2072/test.sci'');','errcatch')<>34 then pause,end
36 if execstr('exec(TMPDIR+''/b2072/testOK.sci'');','errcatch')<>34 then pause,end