summaryrefslogtreecommitdiff
path: root/testapi.c
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2022-04-22 20:14:05 -0400
committerMike Gilbert <floppym@gentoo.org>2022-04-22 20:14:05 -0400
commitb31e07dbf40c3998dd466829e818f5870296272d (patch)
treef19aa74b9f823efd4d42f359b3602a9be5d47a08 /testapi.c
parent65b01647bf90019bea271eb0a217cf4365c20af6 (diff)
downloadlibxml2-b31e07dbf40c3998dd466829e818f5870296272d.tar.gz
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
Diffstat (limited to 'testapi.c')
-rw-r--r--testapi.c2
1 files changed, 1 insertions, 1 deletions
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);