X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/0f45a7402ff3a424743afb133cbd9dc012927ae9..5bf3b786505ae25eb082be34452077878655f78c:/tools/tesh/tesh.c diff --git a/tools/tesh/tesh.c b/tools/tesh/tesh.c index 628f8566f8..490e8c2b07 100644 --- a/tools/tesh/tesh.c +++ b/tools/tesh/tesh.c @@ -20,8 +20,9 @@ XBT_LOG_NEW_DEFAULT_CATEGORY(tesh, "TEst SHell utility"); /*** Options ***/ int timeout_value = 5; /* child timeout value */ +int sort_len = 19; /* length of the prefix to sort */ -char *testsuite_name; +const char *testsuite_name; static void handle_line(const char *filepos, char *line) { /* Search end */ @@ -241,8 +242,9 @@ int main(int argc, char *argv[]) /* Find the description file */ if (argc == 1) { INFO0("Test suite from stdin"); - testsuite_name = xbt_strdup("(stdin)"); - handle_suite("stdin", stdin); + testsuite_name = "(stdin)"; + handle_suite(testsuite_name, stdin); + rctx_wait_bg(); INFO0("Test suite from stdin OK"); } else {