summaryrefslogtreecommitdiffstats
path: root/Source/CTest
diff options
context:
space:
mode:
authorZach Mullen <zach.mullen@kitware.com>2009-11-05 16:37:47 (GMT)
committerZach Mullen <zach.mullen@kitware.com>2009-11-05 16:37:47 (GMT)
commit9f105a3f6de6036d14e6a7b01a7a8e66d641259c (patch)
tree3b596e679d865ac3add0a8b5ea2e7c65066890f9 /Source/CTest
parent9aa4e134b5c0983decbde86b0e7b723884d8429c (diff)
downloadCMake-9f105a3f6de6036d14e6a7b01a7a8e66d641259c.zip
CMake-9f105a3f6de6036d14e6a7b01a7a8e66d641259c.tar.gz
CMake-9f105a3f6de6036d14e6a7b01a7a8e66d641259c.tar.bz2
Fix style warning in cmsystemtools, cosmetic change to ctest code
Diffstat (limited to 'Source/CTest')
-rw-r--r--Source/CTest/cmCTestMultiProcessHandler.cxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/Source/CTest/cmCTestMultiProcessHandler.cxx b/Source/CTest/cmCTestMultiProcessHandler.cxx
index 984ed37..4b3d425 100644
--- a/Source/CTest/cmCTestMultiProcessHandler.cxx
+++ b/Source/CTest/cmCTestMultiProcessHandler.cxx
@@ -407,12 +407,9 @@ void cmCTestMultiProcessHandler::CheckResume()
fin.close();
}
}
- else
+ else if(cmSystemTools::FileExists(fname.c_str(), true))
{
- if(cmSystemTools::FileExists(fname.c_str(), true))
- {
- cmSystemTools::RemoveFile(fname.c_str());
- }
+ cmSystemTools::RemoveFile(fname.c_str());
}
}