Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CS3214 Project 2 - A Fork-Join Framework
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
maxb24
CS3214 Project 2 - A Fork-Join Framework
Commits
fe977b69
Commit
fe977b69
authored
4 years ago
by
gback
Browse files
Options
Downloads
Patches
Plain Diff
accept test6 if no leaks without suppression
parent
f7134822
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/threadpool_test6.py
+5
-1
5 additions, 1 deletion
tests/threadpool_test6.py
with
5 additions
and
1 deletion
tests/threadpool_test6.py
+
5
−
1
View file @
fe977b69
...
...
@@ -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
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment