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
change argument testing method (100% coverage)
[simgrid.git]
/
examples
/
simdag
/
sd_typed_tasks_test.c
diff --git
a/examples/simdag/sd_typed_tasks_test.c
b/examples/simdag/sd_typed_tasks_test.c
index
32f3e59
..
e8fe7b4
100644
(file)
--- a/
examples/simdag/sd_typed_tasks_test.c
+++ b/
examples/simdag/sd_typed_tasks_test.c
@@
-32,11
+32,8
@@
int main(int argc, char **argv)
/* xbt_log_control_set("sd.thres=debug"); */
/* xbt_log_control_set("sd.thres=debug"); */
- if (argc < 2) {
- XBT_INFO("Usage: %s platform_file", argv[0]);
- XBT_INFO("example: %s sd_platform.xml", argv[0]);
- exit(1);
- }
+ xbt_assert(argc > 1, "Usage: %s platform_file\n"
+ "\nExample: %s two_clusters.xml", argv[0], argv[0]);
/* creation of the environment */
platform_file = argv[1];
/* creation of the environment */
platform_file = argv[1];