X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/0e9c0448c6566825b170b98ecff716b098bda10e..6d14c1b85abceee6c22915a6d8e8c4d49e8f3b03:/tools/tesh/run_context.c diff --git a/tools/tesh/run_context.c b/tools/tesh/run_context.c index 8bfa7c73d1..6f046dfa49 100644 --- a/tools/tesh/run_context.c +++ b/tools/tesh/run_context.c @@ -1,6 +1,6 @@ /* run_context -- stuff in which TESH runs a command */ -/* Copyright (c) 2007-2013. The SimGrid Team. +/* Copyright (c) 2007-2014. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -795,8 +795,6 @@ void *rctx_wait(void *r) } xbt_strbuff_chomp(rctx->output_got); xbt_strbuff_chomp(rctx->output_wanted); - xbt_strbuff_trim(rctx->output_got); - xbt_strbuff_trim(rctx->output_wanted); /* Check for broken pipe */ if (rctx->brokenpipe) @@ -871,7 +869,7 @@ void *rctx_wait(void *r) xbt_dynar_t a = xbt_str_split(rctx->output_got->data, "\n"); char *out = xbt_str_join(a, "\n||"); xbt_dynar_free(&a); - XBT_INFO("Output of <%s> so far: \n||%s", rctx->filepos, out); + XBT_INFO("Output of <%s> so far:\n||%s", rctx->filepos, out); free(out); } else if (rctx->output == e_output_check && (rctx->output_got->used != rctx->output_wanted->used @@ -893,7 +891,7 @@ void *rctx_wait(void *r) xbt_dynar_t a = xbt_str_split(rctx->output_got->data, "\n"); char *out = xbt_str_join(a, "\n||"); xbt_dynar_free(&a); - XBT_INFO("Here is the (ignored) command output: \n||%s", out); + XBT_INFO("Here is the (ignored) command output:\n||%s", out); free(out); }