Commit a31d99c8 authored by Matthew P. Russell's avatar Matthew P. Russell
Browse files

Update unit_test

parent 4d82878f
......@@ -197,10 +197,10 @@ for test in test_names:
if valgrind_passphrase not in VALGRIND_RESULT.stderr:
# only capture the part after "LEAK SUMMARY"
VALGRIND_RESULT = VALGRIND_RESULT.stderr.split("LEAK SUMMARY")[1]
VALGRIND_INFO = VALGRIND_RESULT.stderr.split("LEAK SUMMARY")[1]
# check for leaks
for line in VALGRIND_RESULT.split('\n'):
for line in VALGRIND_INFO.split('\n'):
if "lost" in line and "0 bytes in 0 blocks" not in line:
valgrind_passed = False
break
......@@ -210,7 +210,7 @@ for test in test_names:
score += valgrind_test_max
else:
inform("valgrind failed", color=FAILURE, linebreak=True)
inform(VALGRIND_RESULT, color=FAILURE, extraline=True)
inform(VALGRIND_RESULT.stderr, color=FAILURE, extraline=True)
# if here, then the regular test failed
else:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment