[libxml2] testapi: remove leading slash from "/missing.xml"



commit b31e07dbf40c3998dd466829e818f5870296272d
Author: Mike Gilbert <floppym gentoo org>
Date:   Fri Apr 22 20:14:05 2022 -0400

    testapi: remove leading slash from "/missing.xml"
    
    Fixes an error when running tests in a sandbox on Gentoo Linux.
    
    Bug: https://bugs.gentoo.org/839804

 testapi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/testapi.c b/testapi.c
index d4258c43..c7a5b163 100644
--- a/testapi.c
+++ b/testapi.c
@@ -442,7 +442,7 @@ static void des_eaten_name(int no ATTRIBUTE_UNUSED, xmlChar *val ATTRIBUTE_UNUSE
 #define gen_nb_fileoutput 6
 
 static const char *gen_fileoutput(int no, int nr ATTRIBUTE_UNUSED) {
-    if (no == 0) return("/missing.xml");
+    if (no == 0) return("missing.xml");
     if (no == 1) return("<foo/>");
     if (no == 2) return(REMOTE2GOOD);
     if (no == 3) return(REMOTE1GOOD);


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