Skip to content
Snippets Groups Projects
Commit fe977b69 authored by gback's avatar gback
Browse files

accept test6 if no leaks without suppression

parent f7134822
No related branches found
No related tags found
No related merge requests found
......@@ -19,6 +19,10 @@ if proc.returncode != 0:
# ==2343328== indirectly lost: 0 bytes in 0 blocks
# ==2343328== possibly lost: 0 bytes in 0 blocks
# ==2343328== still reachable: 0 bytes in 0 blocks
#
# or:
# ==1321353== in use at exit: 0 bytes in 0 blocks
# All heap blocks were freed -- no leaks are possible
reports = set()
for line in stderr.decode().split('\n'):
......@@ -40,7 +44,7 @@ try:
except FileNotFoundError as fne:
print (fne, file=sys.stderr)
if reports == {'possibly lost', 'indirectly lost', 'definitely lost', 'still reachable'}:
if reports == {'possibly lost', 'indirectly lost', 'definitely lost', 'still reachable'} or reports == {'in use at exit'}:
print ("Leak check successful.")
sys.exit(0)
else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment