Skip to content

Commit af2beb9

Browse files
authored
Merge pull request #124 from pks-gitlab/pks-print-drop-suite-names
clar/print: drop unused suite names
2 parents 4f5438b + 938b6e7 commit af2beb9

File tree

7 files changed

+12
-17
lines changed

7 files changed

+12
-17
lines changed

clar.c

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ struct clar_suite {
195195
};
196196

197197
/* From clar_print_*.c */
198-
static void clar_print_init(int test_count, int suite_count, const char *suite_names);
198+
static void clar_print_init(int test_count, int suite_count);
199199
static void clar_print_shutdown(int test_count, int suite_count, int error_count);
200200
static void clar_print_error(int num, const struct clar_report *report, const struct clar_error *error);
201201
static void clar_print_ontest(const char *suite_name, const char *test_name, int test_number, enum cl_test_status failed);
@@ -592,11 +592,7 @@ clar_test_init(int argc, char **argv)
592592
if (argc > 1)
593593
clar_parse_args(argc, argv);
594594

595-
clar_print_init(
596-
(int)_clar_callback_count,
597-
(int)_clar_suite_count,
598-
""
599-
);
595+
clar_print_init((int)_clar_callback_count, (int)_clar_suite_count);
600596

601597
if (!_clar.summary_filename &&
602598
(summary_env = getenv("CLAR_SUMMARY")) != NULL) {

clar/print.h

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
/* clap: clar protocol, the traditional clar output format */
22

3-
static void clar_print_clap_init(int test_count, int suite_count, const char *suite_names)
3+
static void clar_print_clap_init(int test_count, int suite_count)
44
{
55
(void)test_count;
66

77
if (_clar.verbosity < 0)
88
return;
99

10-
printf("Loaded %d suites: %s\n", (int)suite_count, suite_names);
10+
printf("Loaded %d suites:\n", (int)suite_count);
1111
printf("Started (test status codes: OK='.' FAILURE='F' SKIPPED='S')\n");
1212
}
1313

@@ -103,11 +103,10 @@ static void clar_print_clap_onabort(const char *fmt, va_list arg)
103103

104104
/* tap: test anywhere protocol format */
105105

106-
static void clar_print_tap_init(int test_count, int suite_count, const char *suite_names)
106+
static void clar_print_tap_init(int test_count, int suite_count)
107107
{
108108
(void)test_count;
109109
(void)suite_count;
110-
(void)suite_names;
111110
printf("TAP version 13\n");
112111
}
113112

@@ -207,9 +206,9 @@ static void clar_print_tap_onabort(const char *fmt, va_list arg)
207206
} \
208207
} while (0)
209208

210-
static void clar_print_init(int test_count, int suite_count, const char *suite_names)
209+
static void clar_print_init(int test_count, int suite_count)
211210
{
212-
PRINT(init, test_count, suite_count, suite_names);
211+
PRINT(init, test_count, suite_count);
213212
}
214213

215214
static void clar_print_shutdown(int test_count, int suite_count, int error_count)

test/expected/specific_test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Loaded 1 suites:
1+
Loaded 1 suites:
22
Started (test status codes: OK='.' FAILURE='F' SKIPPED='S')
33
F
44

test/expected/stop_on_failure

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Loaded 1 suites:
1+
Loaded 1 suites:
22
Started (test status codes: OK='.' FAILURE='F' SKIPPED='S')
33
F
44

test/expected/summary_with_filename

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Loaded 1 suites:
1+
Loaded 1 suites:
22
Started (test status codes: OK='.' FAILURE='F' SKIPPED='S')
33
FFFFFFFFFF
44

test/expected/summary_without_filename

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Loaded 1 suites:
1+
Loaded 1 suites:
22
Started (test status codes: OK='.' FAILURE='F' SKIPPED='S')
33
FFFFFFFFFF
44

test/expected/without_arguments

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Loaded 1 suites:
1+
Loaded 1 suites:
22
Started (test status codes: OK='.' FAILURE='F' SKIPPED='S')
33
FFFFFFFFFF
44

0 commit comments

Comments
 (0)