fix test harness for windows debug builds

This commit is contained in:
Wenzel Jakob 2015-12-13 11:33:41 +01:00
parent bda3b67dc5
commit 76269b70b6

View File

@ -25,8 +25,10 @@ def sanitize(lines):
line = line.strip() line = line.strip()
if sys.platform == 'win32': if sys.platform == 'win32':
lower = line.lower() lower = line.lower()
# The precise pattern of allocations and deallocations is dependent on the compiler
# and optimization level, so we unfortunately can't reliably check it in this kind of test case
if 'constructor' in lower or 'destructor' in lower \ if 'constructor' in lower or 'destructor' in lower \
or 'ref' in lower: or 'ref' in lower or 'freeing' in lower:
line = "" line = ""
lines[i] = line lines[i] = line