Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Do display the output when requested to not take it into account but the child dyied...
[simgrid.git] / tools / tesh / run_context.c
index 3f65821..966d44a 100644 (file)
@@ -402,8 +402,11 @@ void *rctx_wait(void* r) {
     rctx_free(rctx);
   else
     rctx_empty(rctx);
-  if (errcode)
+  if (errcode) {
+    if (!rctx->check_output)
+      INFO1("Here is the child output:\n%s",rctx->output_got->data);
     exit (errcode);
+  }
 
   return NULL;
 }