X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/143a28bbbc8b35fc3fc1098e57f827fe95b8fb31..6961ee4e0cb867ed6100e487a584fccc703ada4f:/tools/tesh/tesh.c diff --git a/tools/tesh/tesh.c b/tools/tesh/tesh.c index b8241a4935..34c92b1351 100644 --- a/tools/tesh/tesh.c +++ b/tools/tesh/tesh.c @@ -11,17 +11,23 @@ #pragma hdrstop #endif +#include "simgrid_config.h" //For getline, keep that include first + #include "tesh.h" #include "xbt.h" -#include "simgrid_config.h" //For getline 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 *option; +rctx_t rctx; const char *testsuite_name; + +xbt_dict_t env; + static void handle_line(const char *filepos, char *line) { /* Search end */ @@ -226,7 +232,7 @@ int main(int argc, char *argv[]) exit(1); } char *eq = strchr(argv[i+1], '='); - xbt_assert1(eq,"The argument of --setenv must contain a '=' (got %s instead)",argv[i+1]); + xbt_assert(eq,"The argument of --setenv must contain a '=' (got %s instead)",argv[i+1]); char *key = bprintf("%.*s", (int) (eq - argv[i+1]), argv[i+1]); xbt_dict_set(env, key, xbt_strdup(eq + 1), xbt_free_f); XBT_INFO("setting environment variable '%s' to '%s'", key, eq+1);