Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Finally beat the communication failure leaks of MSG
[simgrid.git] / tools / tesh / run_context.c
index 5b9a9bb..b593904 100644 (file)
@@ -302,6 +302,9 @@ void rctx_pushline(const char *filepos, char kind, char *line)
 
     rctx->cmd = xbt_strdup(line);
     rctx->filepos = xbt_strdup(filepos);
+    if(option){
+       rctx->cmd = bprintf("%s %s",rctx->cmd,option);
+    }
     INFO3("[%s] %s%s", filepos, rctx->cmd,
           ((rctx->is_background) ? " (background command)" : ""));
 
@@ -802,7 +805,6 @@ void *rctx_wait(void *r)
     xbt_dynar_free(&a);
     /* If an empty line moved in first position, move it back to the end */
     if (rctx->output_got->data[0]=='\n') {
-      fprintf(stderr,"XXX");
       memmove(rctx->output_got->data,rctx->output_got->data+1,rctx->output_got->used-1);
       rctx->output_got->data[rctx->output_got->used-1] = '\n';
     }