X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/f2d062a16daf5602b56944a78c51c36ae317a7fa..4c04d8355923f8323a1a3195fe3b73ac08b984ea:/tools/tesh/run_context.c diff --git a/tools/tesh/run_context.c b/tools/tesh/run_context.c index c8052d0a68..59f787e187 100644 --- a/tools/tesh/run_context.c +++ b/tools/tesh/run_context.c @@ -353,7 +353,8 @@ static void *thread_reader(void *r) /* let this thread wait for the child so that the main thread can detect the timeout without blocking on the wait */ got_pid = waitpid(rctx->pid, &rctx->status, 0); if (got_pid != rctx->pid) { - perror(bprintf("Cannot wait for the child %s", rctx->cmd)); + perror(bprintf("(%s) Cannot wait for the child %s (got pid %d where pid %d were expected;rctx=%p;status=%d)", + xbt_thread_self_name(), rctx->cmd, (int)got_pid, (int)rctx->pid,rctx,rctx->status)); ERROR1("Test suite `%s': NOK (system error)", testsuite_name); rctx_armageddon(rctx, 4); return NULL;