Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Make cunit memory clean
[simgrid.git] / tools / sg_unit_extractor.pl
index f3f08cd..9ef69f9 100755 (executable)
@@ -98,6 +98,7 @@ 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 */
       
@@ -146,7 +147,10 @@ int main(int argc, char *argv[]) {
     }
   /* Got all my tests to do */
       
-  return xbt_test_run(selection);
+  res = xbt_test_run(selection);
+  xbt_test_exit();
+  xbt_exit();
+  return res;
 }
 EOF
   print OUT $GENERATED;