* We need to trap calls to the resolver to not account memory for the catalog * which is shared to the current running test. We also don't want to have * network downloads modifying tests. */
| 225 | * network downloads modifying tests. |
| 226 | */ |
| 227 | static xmlParserInputPtr |
| 228 | testExternalEntityLoader(const char *URL, const char *ID, |
| 229 | xmlParserCtxtPtr ctxt) { |
| 230 | xmlParserInputPtr ret; |
| 231 | |
| 232 | if (checkTestFile(URL)) { |
| 233 | ret = xmlNoNetExternalEntityLoader(URL, ID, ctxt); |
| 234 | } else { |
| 235 | int memused = xmlMemUsed(); |
| 236 | ret = xmlNoNetExternalEntityLoader(URL, ID, ctxt); |
| 237 | extraMemoryFromResolver += xmlMemUsed() - memused; |
| 238 | } |
| 239 | |
| 240 | return(ret); |
| 241 | } |
| 242 | |
| 243 | /* |
| 244 | * Trapping the error messages at the generic level to grab the equivalent of |
nothing calls this directly
no test coverage detected