diff options
author | Rolf Eike Beer <eike@sf-mail.de> | 2013-05-09 10:24:09 (GMT) |
---|---|---|
committer | Rolf Eike Beer <eike@sf-mail.de> | 2013-05-09 17:25:50 (GMT) |
commit | 159c3e91ac0abc386ff363ed3382105de7143339 (patch) | |
tree | ab2f1061b4c9c89a4dc2fa1daf0a5637d8d4eedd /Tests/CTestTestMemcheck/memtester.cxx.in | |
parent | 61ddb9319b8b0d7182d9812df03b88b5d8e57c1d (diff) | |
download | CMake-159c3e91ac0abc386ff363ed3382105de7143339.zip CMake-159c3e91ac0abc386ff363ed3382105de7143339.tar.gz CMake-159c3e91ac0abc386ff363ed3382105de7143339.tar.bz2 |
Tests: add a test with custom options passed to valgrind
Diffstat (limited to 'Tests/CTestTestMemcheck/memtester.cxx.in')
-rw-r--r-- | Tests/CTestTestMemcheck/memtester.cxx.in | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Tests/CTestTestMemcheck/memtester.cxx.in b/Tests/CTestTestMemcheck/memtester.cxx.in index 64b72d3..4609fa3 100644 --- a/Tests/CTestTestMemcheck/memtester.cxx.in +++ b/Tests/CTestTestMemcheck/memtester.cxx.in @@ -28,6 +28,12 @@ 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) |