Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
otb
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
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
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
David Youssefi
otb
Commits
2b1d270a
Commit
2b1d270a
authored
15 years ago
by
Emmanuel Christophe
Browse files
Options
Downloads
Patches
Plain Diff
REFAC: TestHelper: limit the scope of variables
parent
5f4c7b30
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Testing/Code/otbTestHelper.cxx
+2
-3
2 additions, 3 deletions
Testing/Code/otbTestHelper.cxx
with
2 additions
and
3 deletions
Testing/Code/otbTestHelper.cxx
+
2
−
3
View file @
2b1d270a
...
@@ -133,9 +133,6 @@ int TestHelper::RegressionTestAsciiFile(const char * testAsciiFileName, const ch
...
@@ -133,9 +133,6 @@ int TestHelper::RegressionTestAsciiFile(const char * testAsciiFileName, const ch
{
{
strfileref
=
*
itRef
;
strfileref
=
*
itRef
;
strfiletest
=
*
itTest
;
strfiletest
=
*
itTest
;
otb
::
StringStream
buffstreamRef
,
buffstreamTest
;
buffstreamRef
<<
strfileref
;
//Check is the current line should be ignored
//Check is the current line should be ignored
bool
ignoreCurrentLineRef
=
false
;
bool
ignoreCurrentLineRef
=
false
;
...
@@ -164,6 +161,8 @@ int TestHelper::RegressionTestAsciiFile(const char * testAsciiFileName, const ch
...
@@ -164,6 +161,8 @@ int TestHelper::RegressionTestAsciiFile(const char * testAsciiFileName, const ch
//ignored one if the order does not matter
//ignored one if the order does not matter
if
((
!
ignoreCurrentLineRef
)
&&
(
!
ignoreCurrentLineTest
))
if
((
!
ignoreCurrentLineRef
)
&&
(
!
ignoreCurrentLineTest
))
{
{
otb
::
StringStream
buffstreamRef
,
buffstreamTest
;
buffstreamRef
<<
strfileref
;
buffstreamTest
<<
strfiletest
;
buffstreamTest
<<
strfiletest
;
//Number of differences in the current line
//Number of differences in the current line
bool
differenceFoundInCurrentLine
=
false
;
bool
differenceFoundInCurrentLine
=
false
;
...
...
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