Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
CMake
CMake
Commits
be52e3b6
Commit
be52e3b6
authored
Jan 15, 2009
by
Bill Hoffman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BUG: fix for bug #8174
parent
35e391c9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
2 deletions
+14
-2
Source/CTest/cmCTestTestHandler.cxx
Source/CTest/cmCTestTestHandler.cxx
+13
-2
Source/CTest/cmCTestTestHandler.h
Source/CTest/cmCTestTestHandler.h
+1
-0
No files found.
Source/CTest/cmCTestTestHandler.cxx
View file @
be52e3b6
...
...
@@ -401,7 +401,12 @@ cmCTestTestHandler::cmCTestTestHandler()
this
->
LogFile
=
0
;
this
->
DartStuff
.
compile
(
"(<DartMeasurement.*/DartMeasurement[a-zA-Z]*>)"
);
// regex to detect <DartMeasurement>...</DartMeasurement>
this
->
DartStuff
.
compile
(
"(<DartMeasurement.*/DartMeasurement[a-zA-Z]*>)"
);
// regex to detect each individual <DartMeasurement>...</DartMeasurement>
this
->
DartStuff1
.
compile
(
"(<DartMeasurement[^<]*</DartMeasurement[a-zA-Z]*>)"
);
}
//----------------------------------------------------------------------
...
...
@@ -897,7 +902,13 @@ void cmCTestTestHandler::ProcessOneTest(cmCTestTestProperties *it,
if
(
this
->
DartStuff
.
find
(
output
.
c_str
()))
{
std
::
string
dartString
=
this
->
DartStuff
.
match
(
1
);
cmSystemTools
::
ReplaceString
(
output
,
dartString
.
c_str
(),
""
);
// keep searching and replacing until none are left
while
(
this
->
DartStuff1
.
find
(
output
.
c_str
()))
{
// replace the exact match for the string
cmSystemTools
::
ReplaceString
(
output
,
this
->
DartStuff1
.
match
(
1
).
c_str
(),
""
);
}
cres
.
RegressionImages
=
this
->
GenerateRegressionImages
(
dartString
);
}
...
...
Source/CTest/cmCTestTestHandler.h
View file @
be52e3b6
...
...
@@ -240,6 +240,7 @@ private:
cmsys
::
RegularExpression
ExcludeTestsRegularExpression
;
std
::
string
GenerateRegressionImages
(
const
std
::
string
&
xml
);
cmsys
::
RegularExpression
DartStuff1
;
std
::
string
TestsToRunString
;
bool
UseUnion
;
...
...
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