A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
remove one layer of calls
[simgrid.git]
/
examples
/
simdag
/
daxload
/
sd_daxload.c
diff --git
a/examples/simdag/daxload/sd_daxload.c
b/examples/simdag/daxload/sd_daxload.c
index
ed2eb41
..
ef3d029
100644
(file)
--- a/
examples/simdag/daxload/sd_daxload.c
+++ b/
examples/simdag/daxload/sd_daxload.c
@@
-8,8
+8,6
@@
#include "simgrid/simdag.h"
#include "xbt/file.h"
#include "simgrid/simdag.h"
#include "xbt/file.h"
-#include <stdio.h>
-#include <string.h>
XBT_LOG_NEW_DEFAULT_CATEGORY(test, "Logging specific to this SimDag example");
XBT_LOG_NEW_DEFAULT_CATEGORY(test, "Logging specific to this SimDag example");
@@
-44,7
+42,7
@@
int main(int argc, char **argv)
if (!dax){
XBT_ERROR("A problem occurred during DAX parsing (cycle or syntax). Do not continue this test");
free(tracefilename);
if (!dax){
XBT_ERROR("A problem occurred during DAX parsing (cycle or syntax). Do not continue this test");
free(tracefilename);
- SD_exit();
+
exit(255);
}
exit(255);
}
@@
-81,7
+79,9
@@
int main(int argc, char **argv)
XBT_INFO("------------------- Run the schedule ---------------------------");
SD_simulate(-1);
XBT_INFO("------------------- Produce the trace file---------------------------");
XBT_INFO("------------------- Run the schedule ---------------------------");
SD_simulate(-1);
XBT_INFO("------------------- Produce the trace file---------------------------");
- XBT_INFO("Producing the trace of the run into %s", xbt_basename(tracefilename));
+ char * basename = xbt_basename(tracefilename);
+ XBT_INFO("Producing the trace of the run into %s", basename);
+ free(basename);
FILE *out = fopen(tracefilename, "w");
xbt_assert(out, "Cannot write to %s", tracefilename);
free(tracefilename);
FILE *out = fopen(tracefilename, "w");
xbt_assert(out, "Cannot write to %s", tracefilename);
free(tracefilename);
@@
-108,6
+108,5
@@
int main(int argc, char **argv)
fclose(out);
xbt_dynar_free_container(&dax);
fclose(out);
xbt_dynar_free_container(&dax);
- SD_exit();
return 0;
}
return 0;
}