Add OSX specific INFINITE macro parsing in approval tests

This commit is contained in:
Martin Hořeňovský 2017-11-01 08:46:49 +01:00
parent 22ac9d2184
commit accf9859b4

View File

@ -48,7 +48,9 @@ sinceEpochParser = re.compile(r'\d+ .+ since epoch')
infParser = re.compile(r'''
\(\(float\)\(1e\+300\ \*\ 1e\+300\)\) # MSVC INFINITY macro
|
\(__builtin_inff\(\)\) # Clang INFINITY macro
\(__builtin_inff\(\)\) # Linux (ubuntu) INFINITY macro
|
__builtin_huge_valf\(\) # OSX macro
''', re.VERBOSE)
if len(sys.argv) == 2: