[libxml2] Disable network in API tests



commit 351dbdfe8bfae5a472ee916f429cebe92d63fe43
Author: Nick Wellnhofer <wellnhofer aevum de>
Date:   Fri May 20 14:53:33 2022 +0200

    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")) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]