Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
CMake
CMake
Commits
b40cd9fc
Commit
b40cd9fc
authored
Oct 17, 2004
by
Andy Cedilnik
Browse files
ENH: Cleanups and unify output
parent
ddb3dfdf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Source/CTest/cmCTestTestHandler.cxx
View file @
b40cd9fc
...
...
@@ -613,13 +613,7 @@ void cmCTestTestHandler::ProcessDirectory(std::vector<cmStdString> &passed,
}
cres
.
m_Output
=
output
;
cres
.
m_ReturnValue
=
retVal
;
std
::
string
nwd
=
it
->
m_Directory
;
if
(
nwd
.
size
()
>
m_CTest
->
GetToplevelPath
().
size
()
)
{
nwd
=
"."
+
nwd
.
substr
(
m_CTest
->
GetToplevelPath
().
size
(),
nwd
.
npos
);
}
cmSystemTools
::
ReplaceString
(
nwd
,
"
\\
"
,
"/"
);
cres
.
m_Path
=
nwd
;
cres
.
m_Path
=
it
->
m_Directory
.
c_str
();
cres
.
m_CompletionStatus
=
"Completed"
;
m_TestResults
.
push_back
(
cres
);
}
...
...
@@ -664,8 +658,9 @@ void cmCTestTestHandler::GenerateDartMemCheckOutput(std::ostream& os)
for
(
cc
=
0
;
cc
<
m_TestResults
.
size
();
cc
++
)
{
cmCTestTestResult
*
result
=
&
m_TestResults
[
cc
];
os
<<
"
\t\t
<Test>"
<<
cmCTest
::
MakeXMLSafe
(
result
->
m_Path
)
<<
"/"
<<
cmCTest
::
MakeXMLSafe
(
result
->
m_Name
)
std
::
string
testPath
=
result
->
m_Path
+
"/"
+
result
->
m_Name
;
os
<<
"
\t\t
<Test>"
<<
cmCTest
::
MakeXMLSafe
(
m_CTest
->
GetShortPathToFile
(
testPath
.
c_str
()))
<<
"</Test>"
<<
std
::
endl
;
}
os
<<
"
\t
</TestList>
\n
"
;
...
...
@@ -697,11 +692,13 @@ void cmCTestTestHandler::GenerateDartMemCheckOutput(std::ostream& os)
{
os
<<
"failed"
;
}
std
::
string
testPath
=
result
->
m_Path
+
"/"
+
result
->
m_Name
;
os
<<
"
\"
>
\n
"
<<
"
\t\t
<Name>"
<<
cmCTest
::
MakeXMLSafe
(
result
->
m_Name
)
<<
"</Name>
\n
"
<<
"
\t\t
<Path>"
<<
cmCTest
::
MakeXMLSafe
(
result
->
m_Path
)
<<
"</Path>
\n
"
<<
"
\t\t
<FullName>"
<<
cmCTest
::
MakeXMLSafe
(
result
->
m_Path
)
<<
"/"
<<
cmCTest
::
MakeXMLSafe
(
result
->
m_Name
)
<<
"</FullName>
\n
"
<<
"
\t\t
<Path>"
<<
cmCTest
::
MakeXMLSafe
(
m_CTest
->
GetShortPathToFile
(
result
->
m_Path
.
c_str
()))
<<
"</Path>
\n
"
<<
"
\t\t
<FullName>"
<<
cmCTest
::
MakeXMLSafe
(
m_CTest
->
GetShortPathToFile
(
testPath
.
c_str
()))
<<
"</FullName>
\n
"
<<
"
\t\t
<FullCommandLine>"
<<
cmCTest
::
MakeXMLSafe
(
result
->
m_FullCommandLine
)
<<
"</FullCommandLine>
\n
"
...
...
@@ -769,8 +766,9 @@ void cmCTestTestHandler::GenerateDartTestOutput(std::ostream& os)
for
(
cc
=
0
;
cc
<
m_TestResults
.
size
();
cc
++
)
{
cmCTestTestResult
*
result
=
&
m_TestResults
[
cc
];
os
<<
"
\t\t
<Test>"
<<
cmCTest
::
MakeXMLSafe
(
result
->
m_Path
)
<<
"/"
<<
cmCTest
::
MakeXMLSafe
(
result
->
m_Name
)
std
::
string
testPath
=
result
->
m_Path
+
"/"
+
result
->
m_Name
;
os
<<
"
\t\t
<Test>"
<<
cmCTest
::
MakeXMLSafe
(
m_CTest
->
GetShortPathToFile
(
testPath
.
c_str
()))
<<
"</Test>"
<<
std
::
endl
;
}
os
<<
"
\t
</TestList>
\n
"
;
...
...
@@ -790,11 +788,13 @@ void cmCTestTestHandler::GenerateDartTestOutput(std::ostream& os)
{
os
<<
"failed"
;
}
std
::
string
testPath
=
result
->
m_Path
+
"/"
+
result
->
m_Name
;
os
<<
"
\"
>
\n
"
<<
"
\t\t
<Name>"
<<
cmCTest
::
MakeXMLSafe
(
result
->
m_Name
)
<<
"</Name>
\n
"
<<
"
\t\t
<Path>"
<<
cmCTest
::
MakeXMLSafe
(
result
->
m_Path
)
<<
"</Path>
\n
"
<<
"
\t\t
<FullName>"
<<
cmCTest
::
MakeXMLSafe
(
result
->
m_Path
)
<<
"/"
<<
cmCTest
::
MakeXMLSafe
(
result
->
m_Name
)
<<
"</FullName>
\n
"
<<
"
\t\t
<Path>"
<<
cmCTest
::
MakeXMLSafe
(
m_CTest
->
GetShortPathToFile
(
result
->
m_Path
.
c_str
()))
<<
"</Path>
\n
"
<<
"
\t\t
<FullName>"
<<
cmCTest
::
MakeXMLSafe
(
m_CTest
->
GetShortPathToFile
(
testPath
.
c_str
()))
<<
"</FullName>
\n
"
<<
"
\t\t
<FullCommandLine>"
<<
cmCTest
::
MakeXMLSafe
(
result
->
m_FullCommandLine
)
<<
"</FullCommandLine>
\n
"
...
...
Write
Preview
Supports
Markdown
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