Commit 85f25099 authored by Matt Champlin's avatar Matt Champlin
Browse files

Merge branch 'master' of gitlab.cs.tufts.edu:mrussell/unit_test

parents 21901d66 a31d99c8
...@@ -197,10 +197,10 @@ for test in test_names: ...@@ -197,10 +197,10 @@ for test in test_names:
if valgrind_passphrase not in VALGRIND_RESULT.stderr: if valgrind_passphrase not in VALGRIND_RESULT.stderr:
# only capture the part after "LEAK SUMMARY" # 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 # 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: if "lost" in line and "0 bytes in 0 blocks" not in line:
valgrind_passed = False valgrind_passed = False
break break
......
...@@ -26,7 +26,7 @@ class ArrayList{ ...@@ -26,7 +26,7 @@ class ArrayList{
private: private:
int num_items; int num_items;
int *list; //TODO: add other private member variables
}; };
#endif #endif
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