Do not match exact amount of spaces for errno macro expansion in approvalTests.py

E.g. musl libc expands errno() to __errno_location() without a space between, glibc has 1 space.
This commit is contained in:
John Zimmermann 2020-12-31 16:24:16 +01:00 committed by Martin Hořeňovský
parent f5b413aa58
commit ba81505168

View File

@ -44,7 +44,7 @@ specialCaseParser = re.compile(r'file\((\d+)\)')
# errno macro expands into various names depending on platform, so we need to fix them up as well # errno macro expands into various names depending on platform, so we need to fix them up as well
errnoParser = re.compile(r''' errnoParser = re.compile(r'''
\(\*__errno_location\ \(\)\) \(\*__errno_location\s*\(\)\)
| |
\(\*__error\(\)\) \(\*__error\(\)\)
| |