[libxml2] Don't create missing.xml when running testapi
- From: Nick Wellnhofer <nwellnhof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libxml2] Don't create missing.xml when running testapi
- Date: Fri, 26 Aug 2022 02:59:28 +0000 (UTC)
commit b218abce438a9752d5b22308b4784cc811565e97
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 be404421..4c2ba1f2 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 9012cf03..3e81f664 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]