/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
while (line[linelen] != '\0') {
if (line[linelen] != ' ' && line[linelen] != '\t'
&& line[linelen] != '\n')
while (line[linelen] != '\0') {
if (line[linelen] != ' ' && line[linelen] != '\t'
&& line[linelen] != '\n')
- char *eq = strchr(p, '=');
- char *key = bprintf("%.*s", (int) (eq - p), p);
+ eq = strchr(p, '=');
+ key = bprintf("%.*s", (int) (eq - p), p);
xbt_dict_set(env, key, xbt_strdup(eq + 1), xbt_free_f);
free(key);
}
xbt_dict_set(env, key, xbt_strdup(eq + 1), xbt_free_f);
free(key);
}
- char *suitename = xbt_strdup(argv[i]);
- if (!strcmp("./", suitename))
+ suitename = xbt_strdup(argv[i]);
+ if (!strncmp("./", suitename, 2))
suitename[strlen(suitename) - 5] = '\0';
INFO1("Test suite `%s'", suitename);
testsuite_name = suitename;
suitename[strlen(suitename) - 5] = '\0';
INFO1("Test suite `%s'", suitename);
testsuite_name = suitename;
perror(bprintf("Impossible to open the suite file `%s'", argv[i]));
ERROR1("Test suite `%s': NOK (system error)", testsuite_name);
rctx_armageddon(rctx, 1);
}
perror(bprintf("Impossible to open the suite file `%s'", argv[i]));
ERROR1("Test suite `%s': NOK (system error)", testsuite_name);
rctx_armageddon(rctx, 1);
}