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...
authormquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Mon, 7 May 2007 13:12:59 +0000 (13:12 +0000)
committermquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Mon, 7 May 2007 13:12:59 +0000 (13:12 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3487 48e7efb5-ca39-0410-a469-dd3cf9ba447f

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);
     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);
     exit (errcode);
+  }
 
   return NULL;
 }
 
   return NULL;
 }