From: mquinson Date: Mon, 7 May 2007 13:12:59 +0000 (+0000) Subject: Do display the output when requested to not take it into account but the child dyied... X-Git-Tag: v3.3~1873 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/fc0b5cbe2f4272deac718cb99e2c765745c26408?hp=bea8646d56e86577253e8257235c49867a916928 Do display the output when requested to not take it into account but the child dyied in an unexpected way git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3487 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/tools/tesh/run_context.c b/tools/tesh/run_context.c index 3f65821eb4..966d44a550 100644 --- a/tools/tesh/run_context.c +++ b/tools/tesh/run_context.c @@ -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; }