[libxml2/2.10] Don't create missing.xml when running testapi



commit 1431a5976edb15d46c84e668e0280fb59f1bfc30
Author: Nick Wellnhofer <wellnhofer aevum de>
Date:   Fri Aug 26 02:49:25 2022 +0200

    Don't create missing.xml when running testapi
    
    Side effect of b31e07db. Use a non-existing directory to avoid creating
    a file.

 Makefile.am | 3 ---
 testapi.c   | 2 +-
 2 files changed, 1 insertion(+), 4 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index f5820d15..2afc3727 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -174,9 +174,6 @@ asan:
        @echo '## rebuilding for ASAN'
        ./configure CFLAGS="-fsanitize=address,undefined -Wformat -Werror=format-security 
-Werror=array-bounds -g" CXXFLAGS="-fsanitize=address,undefined -Wformat -Werror=format-security 
-Werror=array-bounds -g" LDFLAGS="-fsanitize=address,undefined" CC="clang" CXX="clang++" --disable-shared ; 
OptimOff  ; $(MAKE) clean ; $(MAKE)
 
-clean-local:
-       rm -f missing.xml # created by testapi
-
 # Old test suite. This should be ported to C.
 tests: $(TEST_DEBUG) $(TEST_CATALOG) $(TEST_REGEXPS) $(TEST_SCHEMATRON) Timingtests $(TEST_VTIME) 
$(PYTHON_TESTS)
 
diff --git a/testapi.c b/testapi.c
index db968cd9..c37cc23a 100644
--- a/testapi.c
+++ b/testapi.c
@@ -443,7 +443,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/dir/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]