Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Moving sd_test.c to examples
[simgrid.git] / testsuite / simdag / sd_test.c
index bf026bf..f4719f1 100644 (file)
@@ -5,13 +5,8 @@
 
 int main(int argc, char **argv) {
   
 
 int main(int argc, char **argv) {
   
-  /* No deployment file
-  if (argc < 3) {
-     printf ("Usage: %s platform_file deployment_file\n", argv[0]);
-     printf ("example: %s msg_platform.xml msg_deployment.xml\n", argv[0]);
-     exit(1);
-  }
-  */
+  /* initialisation of SD */
+  SD_init(&argc, argv);
 
   if (argc < 2) {
      printf ("Usage: %s platform_file\n", argv[0]);
 
   if (argc < 2) {
      printf ("Usage: %s platform_file\n", argv[0]);
@@ -19,9 +14,6 @@ int main(int argc, char **argv) {
      exit(1);
   }
 
      exit(1);
   }
 
-  /* initialisation of SD */
-  SD_init(&argc, argv);
-
   /* creation of the environment */
   char * platform_file = argv[1];
   SD_create_environment(platform_file);
   /* creation of the environment */
   char * platform_file = argv[1];
   SD_create_environment(platform_file);