Appy the same modifications as in yasp (simplify the merge) 45/10845/1
Sylvestre Ledru [Fri, 15 Mar 2013 10:47:29 +0000 (11:47 +0100)]
Change-Id: I8035cec92ed400203970f3fcdfb78d18d7d96de8

scilab/modules/development_tools/macros/test_run.sci

index af8c3d9..566323b 100644 (file)
@@ -676,7 +676,7 @@ function status = test_single(_module, _testPath, _testName)
     "function %onprompt" ;
     "   quit;" ;
     "endfunction" ;
-    "deff(''[]=bugmes()'',''write(%io(2),''''error on test'''')'');";
+    "function []=bugmes(), printf(''error on test'');endfunction"
     "predef(''all'');";
     "tmpdirToPrint = msprintf(''TMPDIR1=''''%s''''\n'',TMPDIR);"
     ];
@@ -697,7 +697,7 @@ function status = test_single(_module, _testPath, _testName)
     head = [
     head;
     "diary(''" + tmp_dia + "'');";
-    "write(%io(2),tmpdirToPrint);";
+    "printf(''%s\n'',tmpdirToPrint);";
     "// <-- HEADER END -->"
     ];