Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
tesh version 2
[simgrid.git] / tools / sg_unit_extractor.pl
index 2d36a9e..30686a7 100755 (executable)
@@ -98,9 +98,12 @@ int main(int argc, char *argv[]) {
   xbt_test_suite_t suite; 
   char selection[1024];
   int i;\n
+  int res;\n
   /* SGU: BEGIN SUITES DECLARATION */
   /* SGU: END SUITES DECLARATION */
       
+  xbt_init(&argc,argv);
+    
   /* Search for the tests to do */
     selection[0]='\\0';
     for (i=1;i<argc;i++) {
@@ -144,7 +147,9 @@ int main(int argc, char *argv[]) {
     }
   /* Got all my tests to do */
       
-  return xbt_test_run(selection);
+  res = xbt_test_run(selection);
+  xbt_exit();
+  return res;
 }
 EOF
   print OUT $GENERATED;