#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");
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);