1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2024-10-26 12:25:09 +03:00

Disable network in API tests

Avoids hangs when trying to make network connections.
This commit is contained in:
Nick Wellnhofer 2022-05-20 14:53:33 +02:00
parent c50196c13d
commit 351dbdfe8b

View File

@ -142,6 +142,7 @@ int main(int argc, char **argv) {
LIBXML_TEST_VERSION LIBXML_TEST_VERSION
xmlSetStructuredErrorFunc(NULL, structured_errors); xmlSetStructuredErrorFunc(NULL, structured_errors);
xmlSetExternalEntityLoader(xmlNoNetExternalEntityLoader);
if (argc >= 2) { if (argc >= 2) {
if (!strcmp(argv[1], "-q")) { if (!strcmp(argv[1], "-q")) {