Ignore autogenerated files (bis) + display suite/test name in...

Ignore autogenerated files (bis) + display suite/test name in CU_basic_show_failures because filename+line number only is useless in case of factorized tests
parent 8cb603fe
......@@ -12,4 +12,18 @@ autom4te.cache/
compile
config.guess
config.sub
doc/
*.o
*.lo
Makefile
.deps
*.la
*.libs
Jamrules
config.h
config.log
config.status
cunit.pc
libtool
stamp-h1
CUnit.spec
......@@ -58,7 +58,7 @@ extern void OutputDebugStringPrintf(const char *fmt, ...);
#endif
#ifdef ANDROID
extern void AndroidPrintf(FILE *stream, const char *fmt, ...);
#define fprintf(file, fmt, ...) AndroidPrintf(file, fmt, ##__VA_ARGS__)
#define fprintf(file, fmt, ...) AndroidPrintf(file, fmt, ##__VA_ARGS__)
#endif
cunit_trace_handler_t CU_trace_handler = NULL;
......@@ -154,9 +154,13 @@ void CU_basic_show_failures(CU_pFailureRecord pFailure)
int i;
for (i = 1 ; (NULL != pFailure) ; pFailure = pFailure->pNext, i++) {
fprintf(stdout, "\n %d. %s:%u - %s", i,
fprintf(stdout, "\n %d. %s:%u - %s/%s - %s", i,
(NULL != pFailure->strFileName) ? pFailure->strFileName : "",
pFailure->uiLineNumber,
(NULL != pFailure->pSuite->pName) ? pFailure->pSuite->pName : "",
(NULL != pFailure->pTest->pName) ? pFailure->pTest->pName : "",
(NULL != pFailure->strCondition) ? pFailure->strCondition : "");
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment