1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-10-24 13:33:01 +03:00

tests: Skip functions taking va_lists in testapi.c

See !325.
This commit is contained in:
Nick Wellnhofer
2025-06-25 14:27:37 +02:00
parent d4355722c2
commit 63f98ee8a3
2 changed files with 7 additions and 14 deletions

View File

@@ -168,16 +168,23 @@ for file in os.listdir(xmlDocDir):
module1, module2 = xmlmod.findModules(module, name)
cargs = []
skip = False
for arg in func.findall('param'):
atype = etree.tostring(arg.find('type'),
method='text', encoding='unicode').rstrip()
if atype == 'void':
continue
if atype == 'va_list':
skip = True
break
if re.search(r'(Ptr|\*)$', atype):
cargs.append('NULL')
else:
cargs.append('0')
if skip:
continue
mfunc = functions.get(module1)
if mfunc is None:
mfunc = {}

View File

@@ -543,7 +543,6 @@ main(int argc ATTRIBUTE_UNUSED, char **argv ATTRIBUTE_UNUSED) {
xmlStrEqual(NULL, NULL);
xmlStrPrintf(NULL, 0, NULL, 0);
xmlStrQEqual(NULL, NULL, NULL);
xmlStrVPrintf(NULL, 0, NULL, 0);
xmlStrcasecmp(NULL, NULL);
xmlStrcasestr(NULL, NULL);
xmlFree(xmlStrcat(NULL, NULL));
@@ -1198,19 +1197,6 @@ main(int argc ATTRIBUTE_UNUSED, char **argv ATTRIBUTE_UNUSED) {
xmlTextWriterWriteRaw(NULL, NULL);
xmlTextWriterWriteRawLen(NULL, NULL, 0);
xmlTextWriterWriteString(NULL, NULL);
xmlTextWriterWriteVFormatAttribute(NULL, NULL, NULL, 0);
xmlTextWriterWriteVFormatAttributeNS(NULL, NULL, NULL, NULL, NULL, 0);
xmlTextWriterWriteVFormatCDATA(NULL, NULL, 0);
xmlTextWriterWriteVFormatComment(NULL, NULL, 0);
xmlTextWriterWriteVFormatDTD(NULL, NULL, NULL, NULL, NULL, 0);
xmlTextWriterWriteVFormatDTDAttlist(NULL, NULL, NULL, 0);
xmlTextWriterWriteVFormatDTDElement(NULL, NULL, NULL, 0);
xmlTextWriterWriteVFormatDTDInternalEntity(NULL, 0, NULL, NULL, 0);
xmlTextWriterWriteVFormatElement(NULL, NULL, NULL, 0);
xmlTextWriterWriteVFormatElementNS(NULL, NULL, NULL, NULL, NULL, 0);
xmlTextWriterWriteVFormatPI(NULL, NULL, NULL, 0);
xmlTextWriterWriteVFormatRaw(NULL, NULL, 0);
xmlTextWriterWriteVFormatString(NULL, NULL, 0);
#endif /* LIBXML_WRITER_ENABLED */
#ifdef LIBXML_XINCLUDE_ENABLED