summaryrefslogtreecommitdiffstats
path: root/Source/cmCTest.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmCTest.cxx')
-rw-r--r--Source/cmCTest.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/cmCTest.cxx b/Source/cmCTest.cxx
index 2b3eda5..dbbcf40 100644
--- a/Source/cmCTest.cxx
+++ b/Source/cmCTest.cxx
@@ -2271,9 +2271,9 @@ int cmCTest::TestDirectory(bool memcheck)
if ( m_DartMode )
{
- std::ofstream ofs;
+ std::ofstream xmlfile;
if( !this->OpenOutputFile(m_CurrentTag,
- (memcheck ? (m_CompatibilityMode?"Purify.xml":"MemCheck.xml") : "Test.xml"), ofs) )
+ (memcheck ? (m_CompatibilityMode?"Purify.xml":"MemCheck.xml") : "Test.xml"), xmlfile) )
{
std::cerr << "Cannot create " << (memcheck ? "memory check" : "testing")
<< " XML file" << std::endl;
@@ -2281,11 +2281,11 @@ int cmCTest::TestDirectory(bool memcheck)
}
if ( memcheck )
{
- this->GenerateDartMemCheckOutput(ofs);
+ this->GenerateDartMemCheckOutput(xmlfile);
}
else
{
- this->GenerateDartTestOutput(ofs);
+ this->GenerateDartTestOutput(xmlfile);
}
}