| 105 | static int nbFatal = 0; |
| 106 | |
| 107 | static 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 | |
| 124 | static void |
| 125 | testErrorHandler(void *userData ATTRIBUTE_UNUSED, const xmlError *error) { |
no test coverage detected