1 // =============================================================================
2 // Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3 // Copyright (C) 2010 - DIGITEO - Allan CORNET
5 // This file is distributed under the same license as the Scilab package.
6 // =============================================================================
8 // <-- JVM NOT MANDATORY -->
10 // <-- Non-regression test for bug 7599 -->
12 // <-- Bugzilla URL -->
13 // http://bugzilla.scilab.org/show_bug.cgi?id=7599
15 // <-- Short Description -->
16 // Intersci-n and intersci did not create code from a .desc file if it was not ended by a empty line.
18 if getos() == 'Windows' then
19 copyfile(SCI+"/modules/intersci/tests/nonreg_tests/bug_7599.desc", TMPDIR+"/bug_7599.desc");
21 s = dos(SCI+'/modules/intersci/bin/intersci-n.exe bug_7599');
22 if s <> %t then bugmes();quit;end
23 r = mgetl(TMPDIR + '/bug_7599.c');
24 ref = mgetl(SCI+"/modules/intersci/tests/nonreg_tests/bug_7599.c");
25 if ~and(r == ref) then bugmes();quit;end