summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2020-02-06 08:38:40 +0100
committerAndreas Schneider <asn@cryptomilk.org>2020-02-06 08:44:02 +0100
commit13c1c7afb4e625d8c6f8d5db2bf9e7308cf91153 (patch)
tree123caef44e71827470c944067481c25d0b9de01e
parent946c15126942c7ff5da92fd20bd82765828a505b (diff)
downloadcmocka-13c1c7afb4e625d8c6f8d5db2bf9e7308cf91153.tar.gz
cmocka-13c1c7afb4e625d8c6f8d5db2bf9e7308cf91153.tar.xz
cmocka-13c1c7afb4e625d8c6f8d5db2bf9e7308cf91153.zip
src: Add group_name in cmprintf_group_start_standard
-rw-r--r--src/cmocka.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/cmocka.c b/src/cmocka.c
index 6783b5d..32f7360 100644
--- a/src/cmocka.c
+++ b/src/cmocka.c
@@ -2523,10 +2523,12 @@ static void cmprintf_group_finish_xml(const char *group_name,
}
}
-static void cmprintf_group_start_standard(const size_t num_tests)
+static void cmprintf_group_start_standard(const char *group_name,
+ const size_t num_tests)
{
- print_message("[==========] Running %u test(s).\n",
- (unsigned)num_tests);
+ print_message("[==========] %s: Running %zu test(s).\n",
+ group_name,
+ num_tests);
}
static void cmprintf_group_finish_standard(const char *group_name,
@@ -2698,7 +2700,8 @@ static void cmprintf_subunit(enum cm_printf_type type,
}
}
-static void cmprintf_group_start(const size_t num_tests)
+static void cmprintf_group_start(const char *group_name,
+ const size_t num_tests)
{
enum cm_message_output output;
@@ -2706,7 +2709,7 @@ static void cmprintf_group_start(const size_t num_tests)
switch (output) {
case CM_OUTPUT_STDOUT:
- cmprintf_group_start_standard(num_tests);
+ cmprintf_group_start_standard(group_name, num_tests);
break;
case CM_OUTPUT_SUBUNIT:
break;
@@ -3110,7 +3113,7 @@ int _cmocka_run_group_tests(const char *group_name,
}
}
- cmprintf_group_start(total_tests);
+ cmprintf_group_start(group_name, total_tests);
rc = 0;