From 351dbdfe8bfae5a472ee916f429cebe92d63fe43 Mon Sep 17 00:00:00 2001 From: Nick Wellnhofer Date: Fri, 20 May 2022 14:53:33 +0200 Subject: [PATCH] Disable network in API tests Avoids hangs when trying to make network connections. --- testapi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/testapi.c b/testapi.c index c7a5b163..db968cd9 100644 --- a/testapi.c +++ b/testapi.c @@ -142,6 +142,7 @@ int main(int argc, char **argv) { LIBXML_TEST_VERSION xmlSetStructuredErrorFunc(NULL, structured_errors); + xmlSetExternalEntityLoader(xmlNoNetExternalEntityLoader); if (argc >= 2) { if (!strcmp(argv[1], "-q")) {