MCPcopy Create free account
hub / github.com/Kitware/VTK / testErrorHandler

Function testErrorHandler

ThirdParty/libxml2/vtklibxml2/runtest.c:250–270  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

248static int testErrorsSize = 0;
249
250static void
251testErrorHandler(void *ctx ATTRIBUTE_UNUSED, const char *msg, ...) {
252 va_list args;
253 int res;
254
255 if (testErrorsSize >= 32768)
256 return;
257 va_start(args, msg);
258 res = vsnprintf(&testErrors[testErrorsSize],
259 32768 - testErrorsSize,
260 msg, args);
261 va_end(args);
262 if (testErrorsSize + res >= 32768) {
263 /* buffer is full */
264 testErrorsSize = 32768;
265 testErrors[testErrorsSize] = 0;
266 } else {
267 testErrorsSize += res;
268 }
269 testErrors[testErrorsSize] = 0;
270}
271
272static void
273testStructuredErrorHandler(void *ctx ATTRIBUTE_UNUSED, const xmlError *err) {

Callers 5

errParseTestFunction · 0.70
streamProcessTestFunction · 0.70
rngOneTestFunction · 0.70
rngTestFunction · 0.70
patternTestFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected