summaryrefslogtreecommitdiffstats
path: root/Tests/CTestTestMemcheck/memtester.cxx.in
diff options
context:
space:
mode:
authorRolf Eike Beer <eike@sf-mail.de>2013-08-07 20:25:48 (GMT)
committerRolf Eike Beer <eike@sf-mail.de>2013-08-07 20:25:48 (GMT)
commit6f9aaad150f769cd73df408514cf5dc42c020074 (patch)
tree3b4f2b157d40db6b8d6ea5af708e01c11cadb060 /Tests/CTestTestMemcheck/memtester.cxx.in
parent7c9f0c664f5782c09c686b8e51fe50245463914b (diff)
downloadCMake-6f9aaad150f769cd73df408514cf5dc42c020074.zip
CMake-6f9aaad150f769cd73df408514cf5dc42c020074.tar.gz
CMake-6f9aaad150f769cd73df408514cf5dc42c020074.tar.bz2
CTest: create one output file per memcheck (#14303)
The output file used for memory checker runs must be unique for every test run in parallel, so simply make them unique for every test run. Simply use the test index to avoid collisions.
Diffstat (limited to 'Tests/CTestTestMemcheck/memtester.cxx.in')
-rw-r--r--Tests/CTestTestMemcheck/memtester.cxx.in8
1 files changed, 1 insertions, 7 deletions
diff --git a/Tests/CTestTestMemcheck/memtester.cxx.in b/Tests/CTestTestMemcheck/memtester.cxx.in
index da6f5a4..55a34e3 100644
--- a/Tests/CTestTestMemcheck/memtester.cxx.in
+++ b/Tests/CTestTestMemcheck/memtester.cxx.in
@@ -28,12 +28,6 @@ main(int argc, char **argv)
std::string logfile;
for (int i = 1; i < argc; i++) {
std::string arg = argv[i];
- // stop processing options, this allows to force
- // the logfile to be ignored
- if (arg == "--")
- {
- break;
- }
if (arg.find(logarg) == 0)
{
if (nextarg)
@@ -46,7 +40,7 @@ main(int argc, char **argv)
{
logfile = arg.substr(logarg.length());
}
- break;
+ // keep searching, it may be overridden later to provoke an error
}
}