Progmasoft Git

catch3

Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.

Clonegit clone https://git.progmasoft.com/catch3

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.
Commit
ba8150516800dd5e18f818346a2a12c45b6ec542
Author
John Zimmermann ·
Committer
Martin Hořeňovský
Parents
f5b413aa58c2

Files · Download .tar.gz

Changes

 tools/scripts/approvalTests.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/scripts/approvalTests.py b/tools/scripts/approvalTests.py
index f8b9425c..73e9b832 100755
--- a/tools/scripts/approvalTests.py
+++ b/tools/scripts/approvalTests.py
@@ -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
 errnoParser = re.compile(r'''
-    \(\*__errno_location\ \(\)\)
+    \(\*__errno_location\s*\(\)\)
     |
     \(\*__error\(\)\)
     |