Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Some change concerning the display of the summary
[simgrid.git] / tools / tesh2 / src / unit.c
index a3c5f18..49282e4 100644 (file)
@@ -634,7 +634,7 @@ unit_summuarize(unit_t unit)
                                number_of_successeded_tests++;  \r
                }\r
                \r
-               asprintf(&p," Unit: %s ............................................................................", include->description ? include->description : include->fstream->name);\r
+               asprintf(&p," Unit: %s ............................................................................", include->description && strlen(include->description) < 60 ? include->description : include->fstream->name);\r
                        \r
                p[70] = '\0';\r
                printf("%s", p);\r
@@ -732,7 +732,7 @@ unit_summuarize(unit_t unit)
                                        number_of_successeded_tests++;\r
                        }\r
                        \r
-                       asprintf(&p," Unit: %s ............................................................................", include->description ? include->description : include->fstream->name);\r
+                       asprintf(&p," Unit: %s ............................................................................", include->description && strlen(include->description) < 60 ? include->description : include->fstream->name);\r
                        \r
                        p[70] = '\0';\r
                        printf("%s", p);\r