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

Function test_log

ThirdParty/libxml2/vtklibxml2/runxmlconf.c:107–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105static int nbFatal = 0;
106
107static void test_log(const char *msg, ...) {
108 va_list args;
109 if (logfile != NULL) {
110 fprintf(logfile, "\n------------\n");
111 va_start(args, msg);
112 vfprintf(logfile, msg, args);
113 va_end(args);
114 fprintf(logfile, "%s", testErrors);
115 testErrorsSize = 0; testErrors[0] = 0;
116 }
117 if (verbose) {
118 va_start(args, msg);
119 vfprintf(stderr, msg, args);
120 va_end(args);
121 }
122}
123
124static void
125testErrorHandler(void *userData ATTRIBUTE_UNUSED, const xmlError *error) {

Callers 5

xmlconfTestInvalidFunction · 0.70
xmlconfTestValidFunction · 0.70
xmlconfTestNotNSWFFunction · 0.70
xmlconfTestNotWFFunction · 0.70
xmlconfTestItemFunction · 0.70

Calls 2

fprintfFunction · 0.85
vfprintfFunction · 0.85

Tested by

no test coverage detected