Debian Codegraph @

src/xml_reporter.c

raw symbols SCIP
1 #cxx . . $ `<file>/src/xml_reporter.c`/include <cgreen/breadcrumb.h>cxx . . $ `<file>/include/cgreen/breadcrumb.h`/
2 #include <stdio.h>
3 #include <stdint.h>
4 #include <stdlib.h>
5 #include <string.h>
6 #include <errno.h>
7
8 #include "utils.h"cxx . . $ `<file>/src/utils.h`/
9
10 #include "xml_reporter_internal.h"cxx . . $ `<file>/src/xml_reporter_internal.h`/
11
12 #ifdef __ANDROID__
13 #include "cgreen/internal/android_headers/androidcompat.h"
14 #endif // #ifdef __ANDROID__
15
16 typedef structcxx . . $ $anonymous_type_c33ac9d8240d142e_0# {
17 XmlPrintercxx . . $ XmlPrinter# *printercxx . . $ $anonymous_type_c33ac9d8240d142e_0#printer.;
18 int segment_countcxx . . $ $anonymous_type_c33ac9d8240d142e_0#segment_count.;
19 } XmlMemocxx . . $ XmlMemo#;
20
21
22 static void xml_reporter_start_suitecxx . . $ xml_reporter_start_suite(8490445735e6bcce).(TestReportercxx . . $ TestReporter# *reporter, const char *name,
23 int count);
24 static void xml_reporter_start_testcxx . . $ xml_reporter_start_test(499118f5be74126f).(TestReportercxx . . $ TestReporter# *reporter, const char *name);
25 static void xml_reporter_finish_testcxx . . $ xml_reporter_finish_test(4c7a3a1bff8d25e8).(TestReportercxx . . $ TestReporter# *reporter, const char *filename,
26 int line, const char *message);
27 static void xml_reporter_finish_suitecxx . . $ xml_reporter_finish_suite(8490445735e6bcce).(TestReportercxx . . $ TestReporter# *reporter, const char *filename,
28 int line);
29 static void xml_show_skipcxx . . $ xml_show_skip(8490445735e6bcce).(TestReportercxx . . $ TestReporter# *reporter, const char *file, int line);
30 static void xml_show_failcxx . . $ xml_show_fail(fabf0cf23815ef65).(TestReportercxx . . $ TestReporter# *reporter, const char *file, int line,
31 const char *message, va_listcxx . . $ va_list# arguments);
32 static void xml_show_incompletecxx . . $ xml_show_incomplete(fabf0cf23815ef65).(TestReportercxx . . $ TestReporter# *reporter, const char *filename,
33 int line, const char *message, va_listcxx . . $ va_list# arguments);
34
35
36 void set_xml_reporter_printercxx . . $ set_xml_reporter_printer(5ae1a2e3eabb5e05).(TestReportercxx . . $ TestReporter# *reporter, XmlPrintercxx . . $ XmlPrinter# *new_printer) {
37 XmlMemocxx . . $ XmlMemo# *memo = (XmlMemocxx . . $ XmlMemo# *)reporter->memocxx . . $ TestReporter_#memo.;
38 memo->printercxx . . $ $anonymous_type_c33ac9d8240d142e_0#printer. = new_printer;
39 }
40
41 static const char *file_prefixcxx . . $ file_prefix.;
42
43 TestReportercxx . . $ TestReporter# *create_xml_reportercxx . . $ create_xml_reporter(7e5a2d32a0879f75).(const char *prefix) {
44 TestReportercxx . . $ TestReporter# *reporter;
45 XmlMemocxx . . $ XmlMemo# *memo;
46
47 reporter = create_reportercxx . . $ create_reporter(a6a8ef953e197a65).();
48 if (reporter == NULLcxx . . $ `<external>/16391990256953433862/stddef.h:419:9`!) {
49 return NULLcxx . . $ `<external>/16391990256953433862/stddef.h:419:9`!;
50 }
51
52 memo = (XmlMemocxx . . $ XmlMemo# *) malloccxx . . $ malloc(bfcfa4d6b7f7ef64).(sizeof(XmlMemocxx . . $ XmlMemo#));
53 if (memo == NULLcxx . . $ `<external>/16391990256953433862/stddef.h:419:9`!) {
54 destroy_reportercxx . . $ destroy_reporter(1083e9dac9de8fd0).(reporter);
55 return NULLcxx . . $ `<external>/16391990256953433862/stddef.h:419:9`!;
56 }
57 memo->printercxx . . $ $anonymous_type_c33ac9d8240d142e_0#printer. = fprintfcxx . . $ fprintf(bc216f8e5b1ebeac).;
58 reporter->memocxx . . $ TestReporter_#memo. = memo;
59
60 file_prefixcxx . . $ file_prefix. = prefix;
61 reporter->start_suitecxx . . $ TestReporter_#start_suite. = &xml_reporter_start_suitecxx . . $ xml_reporter_start_suite(8490445735e6bcce).;
62 reporter->start_testcxx . . $ TestReporter_#start_test. = &xml_reporter_start_testcxx . . $ xml_reporter_start_test(499118f5be74126f).;
63 reporter->show_failcxx . . $ TestReporter_#show_fail. = &xml_show_failcxx . . $ xml_show_fail(fabf0cf23815ef65).;
64 reporter->show_skipcxx . . $ TestReporter_#show_skip. = &xml_show_skipcxx . . $ xml_show_skip(8490445735e6bcce).;
65 reporter->show_incompletecxx . . $ TestReporter_#show_incomplete. = &xml_show_incompletecxx . . $ xml_show_incomplete(fabf0cf23815ef65).;
66 reporter->finish_testcxx . . $ TestReporter_#finish_test. = &xml_reporter_finish_testcxx . . $ xml_reporter_finish_test(4c7a3a1bff8d25e8).;
67 reporter->finish_suitecxx . . $ TestReporter_#finish_suite. = &xml_reporter_finish_suitecxx . . $ xml_reporter_finish_suite(8490445735e6bcce).;
68 return reporter;
69 }
70
71 static int file_stack_pcxx . . $ file_stack_p. = 0;
72 static FILEcxx . . $ FILE# *file_stackcxx . . $ file_stack.[100];
73
74 static char *indentcxx . . $ indent(919e0912a081ce69).(TestReportercxx . . $ TestReporter# *reporter) {
75 static char buffer[1000];
76 int depth = get_breadcrumb_depthcxx . . $ get_breadcrumb_depth(8ca6eaf309ea46b8).(reporter->breadcrumbcxx . . $ TestReporter_#breadcrumb.);
77
78 memsetcxx . . $ memset(d1de1e4fb215f1c6).(buffer, '\0', depth+1);
79 memsetcxx . . $ memset(d1de1e4fb215f1c6).(buffer, '\t', depth);
80 return buffer;
81 }
82
83 static void print_path_separator_if_neededcxx . . $ print_path_separator_if_needed(2a88658756b4bd81).(XmlMemocxx . . $ XmlMemo# *memo, int *more_segments) {
84 if (*more_segments > 0) {
85 memo->printercxx . . $ $anonymous_type_c33ac9d8240d142e_0#printer.(file_stackcxx . . $ file_stack.[file_stack_pcxx . . $ file_stack_p.-1], "/");
86 (*more_segments)--;
87 }
88 }
89
90 static void print_path_segment_walkercxx . . $ print_path_segment_walker(4611f29f2f861a56).(const char *segment, void *void_memo) {
91 XmlMemocxx . . $ XmlMemo# *memo = (XmlMemocxx . . $ XmlMemo# *)void_memo;
92
93 memo->printercxx . . $ $anonymous_type_c33ac9d8240d142e_0#printer.(file_stackcxx . . $ file_stack.[file_stack_pcxx . . $ file_stack_p.-1], "%s", segment);
94 print_path_separator_if_neededcxx . . $ print_path_separator_if_needed(2a88658756b4bd81).(memo, &memo->segment_countcxx . . $ $anonymous_type_c33ac9d8240d142e_0#segment_count.);
95 }
96
97
98 #ifndef PATH_MAX
99 #define PATH_MAXcxx . . $ `src/xml_reporter.c:99:9`! 4096
100 #endif
101 static char suite_pathcxx . . $ suite_path.[PATH_MAXcxx . . $ `src/xml_reporter.c:99:9`!];
102
103 static void strcat_path_segmentcxx . . $ strcat_path_segment(4611f29f2f861a56).(const char *segment, void *more_segments) {
104 (void)more_segments;
105 if (suite_pathcxx . . $ suite_path.[0] != '\0') strcatcxx . . $ strcat(b7b3a83273496486).(suite_pathcxx . . $ suite_path., "-");
106 strncatcxx . . $ strncat(255158a415b673b0).(suite_pathcxx . . $ suite_path., segment, sizeof(suite_pathcxx . . $ suite_path.)-strlencxx . . $ strlen(751346f8406fd082).(suite_pathcxx . . $ suite_path.)-1);
107 }
108
109 static void add_suite_namecxx . . $ add_suite_name(85c52e162fed56f9).(const char *suite_name) {
110 if (suite_pathcxx . . $ suite_path.[0] != '\0')
111 strcatcxx . . $ strcat(b7b3a83273496486).(suite_pathcxx . . $ suite_path., "-");
112 strncatcxx . . $ strncat(255158a415b673b0).(suite_pathcxx . . $ suite_path., suite_name, sizeof(suite_pathcxx . . $ suite_path.)-strlencxx . . $ strlen(751346f8406fd082).(suite_pathcxx . . $ suite_path.)-1);
113 }
114
115 static void xml_reporter_start_suitecxx . . $ xml_reporter_start_suite(8490445735e6bcce).(TestReportercxx . . $ TestReporter# *reporter, const char *suitename, int count) {
116 char filename[PATH_MAXcxx . . $ `src/xml_reporter.c:99:9`!];
117 int segment_decrementer = reporter->breadcrumbcxx . . $ TestReporter_#breadcrumb.->depthcxx . . $ CgreenBreadcrumb_#depth.;
118 XmlMemocxx . . $ XmlMemo# *memo = (XmlMemocxx . . $ XmlMemo# *)reporter->memocxx . . $ TestReporter_#memo.;
119 FILEcxx . . $ FILE# *out;
120
121 (void)count; /* UNUSED */
122
123 reporter->passescxx . . $ TestReporter_#passes. = 0;
124 reporter->failurescxx . . $ TestReporter_#failures. = 0;
125 reporter->skipscxx . . $ TestReporter_#skips. = 0;
126 reporter->exceptionscxx . . $ TestReporter_#exceptions. = 0;
127
128 suite_pathcxx . . $ suite_path.[0] = '\0';
129 walk_breadcrumbcxx . . $ walk_breadcrumb(e1235c45da9c923a).(reporter->breadcrumbcxx . . $ TestReporter_#breadcrumb., strcat_path_segmentcxx . . $ strcat_path_segment(4611f29f2f861a56)., &segment_decrementer);
130 add_suite_namecxx . . $ add_suite_name(85c52e162fed56f9).(suitename);
131
132 if (snprintfcxx . . $ snprintf(ea502d73e74c754c).(filename, sizeof(filename), "%s-%s.xml", file_prefixcxx . . $ file_prefix., suite_pathcxx . . $ suite_path.) < 0)
133 PANICcxx . . $ `src/utils.h:14:9`!("Error when creating output filename");
134
135 if (memo->printercxx . . $ $anonymous_type_c33ac9d8240d142e_0#printer. == fprintfcxx . . $ fprintf(bc216f8e5b1ebeac).) {
136 // If we're really printing to files, then open one...
137 out = fopencxx . . $ fopen(82ec0787cd37e0a3).(filename, "w");
138 if (!out) {
139 memo->printercxx . . $ $anonymous_type_c33ac9d8240d142e_0#printer.(stderrcxx . . $ `<external>/232824719582829767/stdio.h:159:9`!, "could not open %s: %s\r\n", filename, strerrorcxx . . $ strerror(ff224f080444ee45).(errnocxx . . $ `<external>/17633486526465735210/errno.h:38:10`!));
140 exitcxx . . $ exit(3ca292c338df9bb3).(EXIT_FAILUREcxx . . $ `<external>/10696550936717951914/stdlib.h:96:9`!);
141 }
142 } else
143 out = stdoutcxx . . $ `<external>/232824719582829767/stdio.h:158:9`!;
144
145 file_stackcxx . . $ file_stack.[file_stack_pcxx . . $ file_stack_p.++] = out;
146 memo->printercxx . . $ $anonymous_type_c33ac9d8240d142e_0#printer.(out, "<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?>\n");
147 memo->printercxx . . $ $anonymous_type_c33ac9d8240d142e_0#printer.(out, indentcxx . . $ indent(919e0912a081ce69).(reporter));
148 memo->printercxx . . $ $anonymous_type_c33ac9d8240d142e_0#printer.(out, "<testsuite name=\"%s\">\n", suite_pathcxx . . $ suite_path.);
149 reporter_start_suitecxx . . $ reporter_start_suite(8490445735e6bcce).(reporter, suitename, 0);
150 }
151
152
153 /* Accumulate output from the actual test (the "<testcase>" nodes) in
154 a file since the tests usually are run in a child processes, so
155 there is no simple way to save output from it and then use it in
156 the parent (start_test() and finish_test() are run from parent) */
157
158 static char *outputcxx . . $ output. = NULLcxx . . $ `<external>/16391990256953433862/stddef.h:419:9`!;
159 static FILEcxx . . $ FILE# *child_output_tmpfilecxx . . $ child_output_tmpfile.;
160
161 static void xml_reporter_start_testcxx . . $ xml_reporter_start_test(499118f5be74126f).(TestReportercxx . . $ TestReporter# *reporter, const char *testname) {
162 XmlMemocxx . . $ XmlMemo# *memo = (XmlMemocxx . . $ XmlMemo# *)reporter->memocxx . . $ TestReporter_#memo.;
163 FILEcxx . . $ FILE# *out = file_stackcxx . . $ file_stack.[file_stack_pcxx . . $ file_stack_p.-1];
164
165 memo->printercxx . . $ $anonymous_type_c33ac9d8240d142e_0#printer.(out, indentcxx . . $ indent(919e0912a081ce69).(reporter));
166 memo->printercxx . . $ $anonymous_type_c33ac9d8240d142e_0#printer.(out, "<testcase classname=\"");
167 memo->segment_countcxx . . $ $anonymous_type_c33ac9d8240d142e_0#segment_count. = reporter->breadcrumbcxx . . $ TestReporter_#breadcrumb.->depthcxx . . $ CgreenBreadcrumb_#depth. - 1;
168 walk_breadcrumbcxx . . $ walk_breadcrumb(e1235c45da9c923a).(reporter->breadcrumbcxx . . $ TestReporter_#breadcrumb., print_path_segment_walkercxx . . $ print_path_segment_walker(4611f29f2f861a56)., memo);
169
170 // Don't terminate the XML-node now so that we can add the duration later
171 // But then we need to accumulate subsequent output to report later
172 memo->printercxx . . $ $anonymous_type_c33ac9d8240d142e_0#printer.(out, "\" name=\"%s\"", testname);
173 reporter_start_testcxx . . $ reporter_start_test(499118f5be74126f).(reporter, testname);
174 outputcxx . . $ output. = strdupcxx . . $ strdup(a8b8e32347182212).("");
175
176 child_output_tmpfilecxx . . $ child_output_tmpfile. = tmpfilecxx . . $ tmpfile(3637adb0f06093ef).();
177 }
178
179
180 static char *concatcxx . . $ concat(b7b3a83273496486).(char *head, const char *tail) {
181 char *result = realloccxx . . $ realloc(417ab160f6baadc6).(head, strlencxx . . $ strlen(751346f8406fd082).(head)+strlencxx . . $ strlen(751346f8406fd082).(tail)+1);
182 return strcatcxx . . $ strcat(b7b3a83273496486).(result, tail);
183 }
184
185 static void xml_show_skipcxx . . $ xml_show_skip(8490445735e6bcce).(TestReportercxx . . $ TestReporter# *reporter, const char *file, int line) {
186 (void)file;
187 (void)line;
188
189 outputcxx . . $ output. = concatcxx . . $ concat(b7b3a83273496486).(outputcxx . . $ output., indentcxx . . $ indent(919e0912a081ce69).(reporter));
190 outputcxx . . $ output. = concatcxx . . $ concat(b7b3a83273496486).(outputcxx . . $ output., "\t<skipped />\n");
191
192 fseekcxx . . $ fseek(543fae30d249f6b1).(child_output_tmpfilecxx . . $ child_output_tmpfile.,0,SEEK_SETcxx . . $ `<external>/232824719582829767/stdio.h:114:9`!);
193 fputscxx . . $ fputs(874fa6a5e59ab9bd).(outputcxx . . $ output., child_output_tmpfilecxx . . $ child_output_tmpfile.);
194 }
195
196 static void xml_concat_escaped_messagecxx . . $ xml_concat_escaped_message(ac175dd46a4e4d7f).(const char *message, va_listcxx . . $ va_list# arguments) {
197 char buffer[1000];
198 vsnprintfcxx . . $ vsnprintf(a85eea89d1bd834f).(buffer, sizeof(buffer)/sizeof(buffer[0]), message, arguments);
199
200 size_t current_char_position = 0;
201 for (; current_char_position < strlencxx . . $ strlen(751346f8406fd082).(buffer); current_char_position++) {
202 switch (buffer[current_char_position]) {
203 case '"':
204 outputcxx . . $ output. = concatcxx . . $ concat(b7b3a83273496486).(outputcxx . . $ output., "&quot;");
205 break;
206 case '&':
207 outputcxx . . $ output. = concatcxx . . $ concat(b7b3a83273496486).(outputcxx . . $ output., "&amp;");
208 break;
209 case '<':
210 outputcxx . . $ output. = concatcxx . . $ concat(b7b3a83273496486).(outputcxx . . $ output., "&lt;");
211 break;
212 case '>':
213 outputcxx . . $ output. = concatcxx . . $ concat(b7b3a83273496486).(outputcxx . . $ output., "&gt;");
214 break;
215 case '\'':
216 outputcxx . . $ output. = concatcxx . . $ concat(b7b3a83273496486).(outputcxx . . $ output., "&apos;");
217 break;
218 default: {
219 char single_char[2] = {0};
220 single_char[0] = buffer[current_char_position];
221 outputcxx . . $ output. = concatcxx . . $ concat(b7b3a83273496486).(outputcxx . . $ output., single_char);
222 }
223 }
224 }
225 }
226
227 static void xml_show_failcxx . . $ xml_show_fail(fabf0cf23815ef65).(TestReportercxx . . $ TestReporter# *reporter, const char *file, int line, const char *message, va_listcxx . . $ va_list# arguments) {
228 char buffer[1000];
229
230 outputcxx . . $ output. = concatcxx . . $ concat(b7b3a83273496486).(outputcxx . . $ output., indentcxx . . $ indent(919e0912a081ce69).(reporter));
231 outputcxx . . $ output. = concatcxx . . $ concat(b7b3a83273496486).(outputcxx . . $ output., "<failure message=\"");
232
233 xml_concat_escaped_messagecxx . . $ xml_concat_escaped_message(ac175dd46a4e4d7f).(message, arguments);
234 outputcxx . . $ output. = concatcxx . . $ concat(b7b3a83273496486).(outputcxx . . $ output., "\">\n");
235 outputcxx . . $ output. = concatcxx . . $ concat(b7b3a83273496486).(outputcxx . . $ output., indentcxx . . $ indent(919e0912a081ce69).(reporter));
236
237 snprintfcxx . . $ snprintf(ea502d73e74c754c).(buffer, sizeof(buffer)/sizeof(buffer[0]),
238 "\t<location file=\"%s\" line=\"%d\"/>\n", file, line);
239 outputcxx . . $ output. = concatcxx . . $ concat(b7b3a83273496486).(outputcxx . . $ output., buffer);
240 outputcxx . . $ output. = concatcxx . . $ concat(b7b3a83273496486).(outputcxx . . $ output., indentcxx . . $ indent(919e0912a081ce69).(reporter));
241 outputcxx . . $ output. = concatcxx . . $ concat(b7b3a83273496486).(outputcxx . . $ output., "</failure>\n");
242
243 fseekcxx . . $ fseek(543fae30d249f6b1).(child_output_tmpfilecxx . . $ child_output_tmpfile.,0,SEEK_SETcxx . . $ `<external>/232824719582829767/stdio.h:114:9`!);
244 fputscxx . . $ fputs(874fa6a5e59ab9bd).(outputcxx . . $ output., child_output_tmpfilecxx . . $ child_output_tmpfile.);
245 }
246
247 static void xml_show_incompletecxx . . $ xml_show_incomplete(fabf0cf23815ef65).(TestReportercxx . . $ TestReporter# *reporter, const char *filename, int line, const char *message, va_listcxx . . $ va_list# arguments) {
248 char buffer[1000];
249
250 outputcxx . . $ output. = concatcxx . . $ concat(b7b3a83273496486).(outputcxx . . $ output., indentcxx . . $ indent(919e0912a081ce69).(reporter));
251 outputcxx . . $ output. = concatcxx . . $ concat(b7b3a83273496486).(outputcxx . . $ output., "<error type=\"Fatal\" message=\"");
252 vsnprintfcxx . . $ vsnprintf(a85eea89d1bd834f).(buffer, sizeof(buffer)/sizeof(buffer[0]),
253 message ? message: "Test terminated unexpectedly, likely from a non-standard exception or Posix signal", arguments);
254 outputcxx . . $ output. = concatcxx . . $ concat(b7b3a83273496486).(outputcxx . . $ output., buffer);
255 outputcxx . . $ output. = concatcxx . . $ concat(b7b3a83273496486).(outputcxx . . $ output., "\">\n");
256 outputcxx . . $ output. = concatcxx . . $ concat(b7b3a83273496486).(outputcxx . . $ output., indentcxx . . $ indent(919e0912a081ce69).(reporter));
257 snprintfcxx . . $ snprintf(ea502d73e74c754c).(buffer, sizeof(buffer)/sizeof(buffer[0]),"\t<location file=\"%s\" line=\"%d\"/>\n", filename, line);
258 outputcxx . . $ output. = concatcxx . . $ concat(b7b3a83273496486).(outputcxx . . $ output., buffer);
259 outputcxx . . $ output. = concatcxx . . $ concat(b7b3a83273496486).(outputcxx . . $ output., indentcxx . . $ indent(919e0912a081ce69).(reporter));
260 outputcxx . . $ output. = concatcxx . . $ concat(b7b3a83273496486).(outputcxx . . $ output., "</error>\n");
261
262 fseekcxx . . $ fseek(543fae30d249f6b1).(child_output_tmpfilecxx . . $ child_output_tmpfile.,0,SEEK_SETcxx . . $ `<external>/232824719582829767/stdio.h:114:9`!);
263 fputscxx . . $ fputs(874fa6a5e59ab9bd).(outputcxx . . $ output., child_output_tmpfilecxx . . $ child_output_tmpfile.);
264 }
265
266
267 static void transfer_output_fromcxx . . $ transfer_output_from(9bb944ac7a35461b).(FILEcxx . . $ FILE# *tmpfile, XmlPrintercxx . . $ XmlPrinter# printer, FILEcxx . . $ FILE# *out) {
268 fseekcxx . . $ fseek(543fae30d249f6b1).(tmpfile, 0, SEEK_SETcxx . . $ `<external>/232824719582829767/stdio.h:114:9`!);
269 char buffer[1000];
270 while (fgetscxx . . $ fgets(efb0aaba7ac866ae).(buffer, 1000, tmpfile) != NULLcxx . . $ `<external>/16391990256953433862/stddef.h:419:9`!)
271 printer(out, "%s", buffer);
272 }
273
274
275 static void xml_reporter_finish_testcxx . . $ xml_reporter_finish_test(4c7a3a1bff8d25e8).(TestReportercxx . . $ TestReporter# *reporter, const char *filename, int line, const char *message) {
276 XmlMemocxx . . $ XmlMemo# *memo = (XmlMemocxx . . $ XmlMemo# *)reporter->memocxx . . $ TestReporter_#memo.;
277 FILEcxx . . $ FILE# *out = file_stackcxx . . $ file_stack.[file_stack_pcxx . . $ file_stack_p.-1];
278
279 reporter_finish_testcxx . . $ reporter_finish_test(4c7a3a1bff8d25e8).(reporter, filename, line, message);
280 memo->printercxx . . $ $anonymous_type_c33ac9d8240d142e_0#printer.(out, " time=\"%.5f\">\n", (double)reporter->durationcxx . . $ TestReporter_#duration./(double)1000);
281 if (outputcxx . . $ output. && strlencxx . . $ strlen(751346f8406fd082).(outputcxx . . $ output.) == 0) {
282 freecxx . . $ free(5d22bdacc48458e8).(outputcxx . . $ output.);
283 outputcxx . . $ output. = NULLcxx . . $ `<external>/16391990256953433862/stddef.h:419:9`!;
284 }
285
286 transfer_output_fromcxx . . $ transfer_output_from(9bb944ac7a35461b).(child_output_tmpfilecxx . . $ child_output_tmpfile., memo->printercxx . . $ $anonymous_type_c33ac9d8240d142e_0#printer., out);
287
288 memo->printercxx . . $ $anonymous_type_c33ac9d8240d142e_0#printer.(out, indentcxx . . $ indent(919e0912a081ce69).(reporter));
289 memo->printercxx . . $ $anonymous_type_c33ac9d8240d142e_0#printer.(out, "</testcase>\n");
290 fflushcxx . . $ fflush(89bc1efcdac0ca22).(out);
291 }
292
293 static void xml_reporter_finish_suitecxx . . $ xml_reporter_finish_suite(8490445735e6bcce).(TestReportercxx . . $ TestReporter# *reporter, const char *filename, int line) {
294 XmlMemocxx . . $ XmlMemo# *memo = (XmlMemocxx . . $ XmlMemo# *)reporter->memocxx . . $ TestReporter_#memo.;
295 FILEcxx . . $ FILE# *out = file_stackcxx . . $ file_stack.[--file_stack_pcxx . . $ file_stack_p.];
296
297 reporter_finish_suitecxx . . $ reporter_finish_suite(8490445735e6bcce).(reporter, filename, line);
298
299 reporter->total_passescxx . . $ TestReporter_#total_passes. += reporter->passescxx . . $ TestReporter_#passes.;
300 reporter->total_failurescxx . . $ TestReporter_#total_failures. += reporter->failurescxx . . $ TestReporter_#failures.;
301 reporter->total_skipscxx . . $ TestReporter_#total_skips. += reporter->skipscxx . . $ TestReporter_#skips.;
302 reporter->total_exceptionscxx . . $ TestReporter_#total_exceptions. += reporter->exceptionscxx . . $ TestReporter_#exceptions.;
303
304 // TODO: Here we should backpatch the time for the suite but that's not
305 // exactly necessary as Jenkins, at least, seems to sum it up automatically
306 memo->printercxx . . $ $anonymous_type_c33ac9d8240d142e_0#printer.(out, indentcxx . . $ indent(919e0912a081ce69).(reporter));
307 memo->printercxx . . $ $anonymous_type_c33ac9d8240d142e_0#printer.(out, "</testsuite>\n");
308 if (file_stack_pcxx . . $ file_stack_p. != 0)
309 fclosecxx . . $ fclose(89bc1efcdac0ca22).(out);
310 }