Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Try to fixup the context mess
[simgrid.git] / src / simgrid_units_main.c
index 0a9271f..f65097e 100644 (file)
@@ -48,6 +48,7 @@ extern xbt_test_unit_t _xbt_current_unit;
 
   /* SGU: BEGIN FILE xbt/xbt_str.c */
     void test_split_quoted(void);
+    void test_split_str(void);
   /* SGU: END FILE */
 
   /* SGU: BEGIN FILE xbt/config.c */
@@ -56,7 +57,6 @@ extern xbt_test_unit_t _xbt_current_unit;
     void test_config_use(void);
   /* SGU: END FILE */
 
-/* SGU: END PROTOTYPES */
 
 /*******************************/
 /* GENERATED FILE, DO NOT EDIT */
@@ -67,6 +67,8 @@ int main(int argc, char *argv[]) {
   char selection[1024];
   int i;
 
+  int res;
+
   /* SGU: BEGIN SUITES DECLARATION */
     /* SGU: BEGIN FILE xbt/cunit.c */
       suite = xbt_test_suite_by_name("cunit","Testsuite mechanism autotest");
@@ -114,6 +116,7 @@ int main(int argc, char *argv[]) {
     /* SGU: BEGIN FILE xbt/xbt_str.c */
       suite = xbt_test_suite_by_name("xbt_str","String Handling");
       xbt_test_suite_push(suite, "xbt_str_split_quoted", test_split_quoted,  "test the function xbt_str_split_quoted");
+      xbt_test_suite_push(suite, "xbt_str_split_str", test_split_str,  "test the function xbt_str_split_str");
     /* SGU: END FILE */
 
     /* SGU: BEGIN FILE xbt/config.c */
@@ -170,7 +173,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;
 }
 /*******************************/
 /* GENERATED FILE, DO NOT EDIT */