1 // <-- Non-regression test for bug 2697 -->
3 // <-- Bugzilla URL -->
4 // http://bugzilla.scilab.org/show_bug.cgi?id=2697
6 // <-- Short Description -->
7 // msprintf crashes scilab when it's called with bad number of argument.
8 // Pierre MARECHAL - Scilab Project
11 // test 1 : not enough input arguments
12 if execstr("msprintf(""string = %s , number = %d .\n"",""Hello world"")","errcatch") == 0 then bugmes();quit;end
13 // test2 : too many input arguments
14 if execstr("msprintf(""string = %s , number = %d .\n"",""Hello world"",2,3)","errcatch") == 0 then bugmes();quit;end