X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/8a80a7488d5a9c1b57d287f939a310ee63c27583..272ccad1b68b6d9c17069f3c934886925bb15b5d:/tools/tesh/tesh.c diff --git a/tools/tesh/tesh.c b/tools/tesh/tesh.c index 6105ba415f..ae83f641ff 100644 --- a/tools/tesh/tesh.c +++ b/tools/tesh/tesh.c @@ -22,7 +22,7 @@ XBT_LOG_NEW_DEFAULT_CATEGORY(tesh, "TEst SHell utility"); int timeout_value = 5; /* child timeout value */ int sort_len = 19; /* length of the prefix to sort */ char *option; -int coverage = 0; /* whether the code coverage is enable */ +int coverage = 0; /* whether the code coverage is enable */ rctx_t rctx; const char *testsuite_name; @@ -248,7 +248,7 @@ int main(int argc, char *argv[]) exit(1); } if (!option){ //if option is NULL - option = bprintf("--cfg=%s",argv[i+1]); + option = bprintf("--cfg=%s",argv[i+1]); } else { char *newoption = bprintf("%s --cfg=%s", option, argv[i+1]); free(option); @@ -260,11 +260,11 @@ int main(int argc, char *argv[]) i -= 2; } else if (!strcmp(argv[i], "--enable-coverage" )){ - coverage = 1; - XBT_INFO("Enable coverage"); - memmove(argv + i, argv + i + 1, (argc - i - 1) * sizeof(char *)); - argc -= 1; - i -= 1; + coverage = 1; + XBT_INFO("Enable coverage"); + memmove(argv + i, argv + i + 1, (argc - i - 1) * sizeof(char *)); + argc -= 1; + i -= 1; } }