summaryrefslogtreecommitdiffstats
path: root/Source/CTest
diff options
context:
space:
mode:
authorVitaly Stakhovsky <vvs31415@gitlab.org>2021-05-11 15:20:00 (GMT)
committerVitaly Stakhovsky <vvs31415@gitlab.org>2021-05-11 15:20:04 (GMT)
commit5e8fa0b7bcdd8f4f1af2a61335df9a1c952dbbdf (patch)
tree440ad6c931ede616674c1616cb328efc0ad80cf0 /Source/CTest
parentee87e53d3732a6482841c01c16e89f2822137d0e (diff)
downloadCMake-5e8fa0b7bcdd8f4f1af2a61335df9a1c952dbbdf.zip
CMake-5e8fa0b7bcdd8f4f1af2a61335df9a1c952dbbdf.tar.gz
CMake-5e8fa0b7bcdd8f4f1af2a61335df9a1c952dbbdf.tar.bz2
Source: Minor code improvements
Diffstat (limited to 'Source/CTest')
-rw-r--r--Source/CTest/cmCTestBuildHandler.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/CTest/cmCTestBuildHandler.cxx b/Source/CTest/cmCTestBuildHandler.cxx
index 103dc1e..03caa63 100644
--- a/Source/CTest/cmCTestBuildHandler.cxx
+++ b/Source/CTest/cmCTestBuildHandler.cxx
@@ -3,7 +3,6 @@
#include "cmCTestBuildHandler.h"
#include <cstdlib>
-#include <cstring>
#include <set>
#include <utility>
@@ -657,14 +656,14 @@ bool cmCTestBuildHandler::IsLaunchedErrorFile(const char* fname)
{
// error-{hash}.xml
return (cmHasLiteralPrefix(fname, "error-") &&
- strcmp(fname + strlen(fname) - 4, ".xml") == 0);
+ cmHasLiteralSuffix(fname, ".xml"));
}
bool cmCTestBuildHandler::IsLaunchedWarningFile(const char* fname)
{
// warning-{hash}.xml
return (cmHasLiteralPrefix(fname, "warning-") &&
- strcmp(fname + strlen(fname) - 4, ".xml") == 0);
+ cmHasLiteralSuffix(fname, ".xml"));
}
//######################################################################