summaryrefslogtreecommitdiff
path: root/Source/CTest/cmCTestTestHandler.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-04-27 12:57:24 +0000
committerKitware Robot <kwrobot@kitware.com>2017-04-27 08:57:30 -0400
commit06d34c4ae73278dc208ff764badbb69f4747df1a (patch)
tree3a50bae17e7e85eefb465eada1294cda2589517b /Source/CTest/cmCTestTestHandler.cxx
parentef205e04d4b06b4cc1456c2bca91d3859e5cb85c (diff)
parent9a740f1b595c7e68aa4670745097d2ca907513b9 (diff)
downloadcmake-06d34c4ae73278dc208ff764badbb69f4747df1a.tar.gz
Merge topic 'clang-tidy-2'
9a740f1b cmCPackIFWInstaller: fix validation of WizardStyle option a168b4cc cmServerProtocol: avoid copies in range for 1ef22a26 cmDocumentation: use ofstream local variable ba8571ff clang-tidy: use operators for string comparison Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !738
Diffstat (limited to 'Source/CTest/cmCTestTestHandler.cxx')
-rw-r--r--Source/CTest/cmCTestTestHandler.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/CTest/cmCTestTestHandler.cxx b/Source/CTest/cmCTestTestHandler.cxx
index c24aecb065..d73811b32b 100644
--- a/Source/CTest/cmCTestTestHandler.cxx
+++ b/Source/CTest/cmCTestTestHandler.cxx
@@ -1735,7 +1735,7 @@ void cmCTestTestHandler::ExpandTestsToRunInformationForRerunFailed()
// bcc crashes if we attempt a normal substring comparison,
// hence the following workaround
std::string fileNameSubstring = fileName.substr(0, pattern.length());
- if (fileNameSubstring.compare(pattern) != 0) {
+ if (fileNameSubstring != pattern) {
continue;
}
if (logName == "") {