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
Add tesh[t], the TEsting SHell Tool
[simgrid.git]
/
testsuite
/
surf
/
surf_usage.c
diff --git
a/testsuite/surf/surf_usage.c
b/testsuite/surf/surf_usage.c
index
e613e7f
..
36ebd7a
100644
(file)
--- a/
testsuite/surf/surf_usage.c
+++ b/
testsuite/surf/surf_usage.c
@@
-6,6
+6,10
@@
/* 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. */
+
+#ifdef __BORLANDC__
+#pragma hdrstop
+#endif
#include <stdio.h>
#include "surf/surf.h"
#include <stdio.h>
#include "surf/surf.h"
@@
-32,7
+36,6
@@
const char *string_action(e_surf_action_state_t state)
}
}
}
}
-
void test(char *platform);
void test(char *platform)
{
void test(char *platform);
void test(char *platform)
{
@@
-131,10
+134,12
@@
void test(char *platform)
} while (surf_solve()>=0.0);
DEBUG0("Simulation Terminated\n");
} while (surf_solve()>=0.0);
DEBUG0("Simulation Terminated\n");
-
- surf_finalize();
}
}
+#ifdef __BORLANDC__
+#pragma argsused
+#endif
+
int main(int argc, char **argv)
{
surf_init(&argc, argv); /* Initialize some common structures */
int main(int argc, char **argv)
{
surf_init(&argc, argv); /* Initialize some common structures */
@@
-143,5
+148,7
@@
int main(int argc, char **argv)
return 1;
}
test(argv[1]);
return 1;
}
test(argv[1]);
+
+ surf_exit();
return 0;
}
return 0;
}