From fc0b5cbe2f4272deac718cb99e2c765745c26408 Mon Sep 17 00:00:00 2001 From: mquinson Date: Mon, 7 May 2007 13:12:59 +0000 Subject: [PATCH] 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 --- tools/tesh/run_context.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; } -- 2.20.1