1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-10-26 00:37:43 +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 = {}