Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
CMake
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
Alexander Neundorf
CMake
Commits
652b162a
Commit
652b162a
authored
21 years ago
by
Andy Cedilnik
Browse files
Options
Downloads
Patches
Plain Diff
ERR: Inner loop used the same counter as outer. Broke coverage code
parent
67285f9a
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Source/cmCTest.cxx
+8
-8
8 additions, 8 deletions
Source/cmCTest.cxx
with
8 additions
and
8 deletions
Source/cmCTest.cxx
+
8
−
8
View file @
652b162a
...
...
@@ -1395,31 +1395,31 @@ int cmCTest::CoverageDirectory()
}
cov
.
m_Show
=
true
;
}
std
::
string
::
size_type
kk
;
for
(
kk
=
0
;
kk
<
lines
.
size
();
kk
++
)
// std::cerr << "number of lines " << lines.size() << "\n";
for
(
cc
=
0
;
cc
<
lines
.
size
();
cc
++
)
{
std
::
string
&
line
=
lines
[
cc
];
std
::
string
&
line
=
lines
[
kk
];
//std::cerr << line << "\n";
std
::
string
sub
=
line
.
substr
(
0
,
strlen
(
" ######"
));
int
count
=
atoi
(
sub
.
c_str
());
if
(
sub
.
compare
(
0
,
strlen
(
" #####"
),
" #####"
)
==
0
||
sub
.
compare
(
" ######"
)
==
0
)
{
if
(
covlines
[
cc
]
==
-
1
)
if
(
covlines
[
kk
]
==
-
1
)
{
covlines
[
cc
]
=
0
;
covlines
[
kk
]
=
0
;
}
cov
.
m_UnTested
++
;
//std::cout << "Untested - ";
}
else
if
(
count
>
0
)
{
if
(
covlines
[
cc
]
==
-
1
)
if
(
covlines
[
kk
]
==
-
1
)
{
covlines
[
cc
]
=
0
;
covlines
[
kk
]
=
0
;
}
cov
.
m_Tested
++
;
covlines
[
cc
]
+=
count
;
covlines
[
kk
]
+=
count
;
//std::cout << "Tested[" << count << "] - ";
}
...
...
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