if(!include->exit_code && !include->interrupted)\r
INFO1("Include from %s OK",include->fstream->name);\r
else if(include->exit_code)\r
- ERROR3("Include `%s' NOK : (<%s> %s)", include->fstream->name, command->context->line, error_to_string(include->exit_code, include->err_kind));\r
+ ERROR3("Include `%s' NOK : (<%s> %s)", include->fstream->name, include->err_line, error_to_string(include->exit_code, include->err_kind));\r
else if(include->interrupted && !include->exit_code)\r
INFO1("Include `(%s)' INTR",include->fstream->name);\r
}\r
return -1;\r
}\r
\r
- if((unit->description) && strlen(unit->description) < 78)\r
+ if((unit->description) && strlen(unit->description) < 76)\r
strcpy(title, unit->description);\r
else\r
sprintf(title, "file : %s",unit->fstream->name);\r
\r
if(unit->interrupted)\r
- strcat(title, " (interrupted)");\r
+ {\r
+ if(strlen(title) + strlen(" (interrupted)") < 76)\r
+ strcat(title, " (interrupted)");\r
+ else\r
+ {\r
+ memset(title, 0, PATH_MAX + 1);\r
+ sprintf(title, "file : %s",unit->fstream->name);\r
+ strcat(title, " (interrupted)");\r
+\r
+ }\r
+ }\r
\r
print_title(title);\r
\r
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
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