+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2008 - INRIA - Pierre MARECHAL <pierre.marechal@inria.fr>
+//
+// This file is distributed under the same license as the Scilab package.
+// =============================================================================
+// <-- CLI SHELL MODE -->
// <-- Non-regression test for bug 2697 -->
//
// <-- Bugzilla URL -->
-// http://www.scilab.org/cgi-bin/bugzilla_bug_II/show_bug.cgi?id=2697
+// http://bugzilla.scilab.org/show_bug.cgi?id=2697
//
// <-- Short Description -->
// msprintf crashes scilab when it's called with bad number of argument.
-// Pierre MARECHAL - Scilab Project
-// Copyright INRIA
-// 10/02/2008
// test 1 : not enough input arguments
if execstr("msprintf(""string = %s , number = %d .\n"",""Hello world"")","errcatch") == 0 then bugmes();quit;end
// test2 : too many input arguments
-if execstr("msprintf(""string = %s , number = %d .\n"",""Hello world"",2,3)","errcatch") == 0 then bugmes();quit;end
+if execstr("msprintf(""string = %s , number = %d .\n"",""Hello world"",2,3)","errcatch") <> 0 then bugmes();quit;end