Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Matthew P. Russell
unit_test
Commits
85f25099
Commit
85f25099
authored
Jan 05, 2021
by
Matt Champlin
Browse files
Merge branch 'master' of gitlab.cs.tufts.edu:mrussell/unit_test
parents
21901d66
a31d99c8
Changes
2
Show whitespace changes
Inline
Side-by-side
bin/unit_test
View file @
85f25099
...
...
@@ -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
...
...
example/ArrayList.h
View file @
85f25099
...
...
@@ -26,7 +26,7 @@ class ArrayList{
private:
int
num_items
;
int
*
list
;
//TODO: add other private member variables
};
#endif
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment