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

Update unit_test

parent 715e59c5
......@@ -156,7 +156,6 @@ for test in test_names:
inform(human_readable_name, color=INFO, linebreak=True)
# run the test and capture the output of cerr
TEST_RESULT = run(["./a.out", test])
# if here, then the regular test failed
......@@ -165,13 +164,14 @@ for test in test_names:
if abs(test_result.returncode) == 11:
inform("segmentation fault!", color=FAILURE)
inform("valgrind failed by default", color=FAILURE)
print_ostreams(TEST_RESULT)
# if here, test PASSED
else:
num_tests_passed += 1
inform("test passed", color=SUCCESS)
print_ostreams(TEST_RESULT)
# Run valgrind
valgrind_command = ['valgrind',
'--leak-check=full',
......
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