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:
parent
c50196c13d
commit
351dbdfe8b
@ -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")) {
|
||||||
|
Loading…
Reference in New Issue
Block a user