// <-- Non-regression test for bug 2697 --> // // <-- Bugzilla URL --> // 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