diff options
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/core/include/junitxml.h | 2 | ||||
-rw-r--r-- | src/lib/core/junitxml.c | 1 | ||||
-rw-r--r-- | src/lib/core/utils.c | 1 |
3 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/core/include/junitxml.h b/src/lib/core/include/junitxml.h index 777ee27..a6fca19 100644 --- a/src/lib/core/include/junitxml.h +++ b/src/lib/core/include/junitxml.h @@ -68,6 +68,8 @@ struct JUNIT_Testsuite { int failures; /// Total number of skipped tests int skipped; + /// Total number of successful tests + int passed; /// Total number of tests int tests; /// Total duration in fractional seconds diff --git a/src/lib/core/junitxml.c b/src/lib/core/junitxml.c index 8ab231b..f747224 100644 --- a/src/lib/core/junitxml.c +++ b/src/lib/core/junitxml.c @@ -192,6 +192,7 @@ static int read_xml_data(xmlTextReaderPtr reader, struct JUNIT_Testsuite **tests (*testsuite)->testcase[cur_tc]->result_state.skipped = skipped; } } + (*testsuite)->passed = (*testsuite)->tests - (*testsuite)->failures - (*testsuite)->errors - (*testsuite)->skipped; guard_strlist_free(&attrs); return 0; } diff --git a/src/lib/core/utils.c b/src/lib/core/utils.c index 621831c..a248f58 100644 --- a/src/lib/core/utils.c +++ b/src/lib/core/utils.c @@ -801,6 +801,7 @@ struct StrList *listdir(const char *path) { strlist_append(&node, fullpath); guard_free(fullpath); } + strlist_sort(node, STASIS_SORT_ALPHA); closedir(dp); return node; } |