summaryrefslogtreecommitdiffstats
path: root/Tests/CTestTestMemcheck
Commit message (Collapse)AuthorAgeFilesLines
* CTest: create one output file per memcheck (#14303)Rolf Eike Beer2013-08-072-13/+16
| | | | | | 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.
* Revert "CTest: fix pre and post test commands with spaces" (#13887)Rolf Eike Beer2013-07-271-1/+5
| | | | | | | This reverts commit 6187876dea89618044e200808bcae75a18bd4043. It was actually possible before to have paths with spaces in them, the spaces just need to be quoted. This way spaces will work as argument separators.
* Merge branch 'master' into escape-regex-specials-in-pathRolf Eike Beer2013-06-0334-369/+199
|\ | | | | | | | | Resolve conflicts in Tests/CTestTestMemcheck/CMakeLists.txt by combining changes from both sides.
| * Merge topic 'Memchecker-Mac-fix'Brad King2013-05-241-1/+1
| |\ | | | | | | | | | | | | 0aed09f Tests: ignore GuardMalloc messages on all Apple build, not just XCode ones
| | * Tests: ignore GuardMalloc messages on all Apple build, not just XCode onesRolf Eike Beer2013-05-231-1/+1
| | |
| * | Tests: fix build of dummy memtester on AIXRolf Eike Beer2013-05-211-1/+1
| |/ | | | | | | | | | | Both <string> and <cmSystemTools.h> include <stdio.h> one or the other way. It looks like the CMake header adds a define that will cause another part of the system header to be used, resulting in conflicting definitions.
| * Tests: ignore Guard Malloc messages in MemChecker testsRolf Eike Beer2013-05-141-1/+7
| |
| * Tests: add a test with custom options passed to valgrindRolf Eike Beer2013-05-092-0/+15
| |
| * Tests: add test for non-existent Valgrind suppression fileRolf Eike Beer2013-05-091-1/+7
| |
| * Tests: verify that memory checker output files are always presentRolf Eike Beer2013-05-092-1/+43
| | | | | | | | | | | | All supported memory checkers now write their output to a file. Use a dummy checker that ignores the given filename and ensure that the missing file is reported as error.
| * Tests: remove code duplication in CTestTestMemCheck testsRolf Eike Beer2013-05-0929-319/+55
| | | | | | | | | | | | The code for the tests is basically the same for all those subtests, so have one template and configure that for as many tests as possible to make it easier maintainable.
| * CTest: remove unreachable code and CTestTestMemcheckUnknown testRolf Eike Beer2013-05-094-36/+3
| | | | | | | | | | | | | | The memory checker command can't be quoted at this point, because previously it has been tested that the given file exists, which will fail if the name is quoted. The CTestTestMemcheckUnknown test aimed to test this case, has always failed to do so and serves no useful purpose therefore.
| * Tests: create output files for all memory checkersRolf Eike Beer2013-05-092-14/+72
| | | | | | | | | | | | | | The dummy memory tester implementation now understands the command line switches for all memory checkers to redirect the output to a file. This avoids triggering the error cases for BoundsChecker and Purify because the output file does not exist.
* | Fix test failures caused by regexp-sensitive characters in the build pathsModestas Vainius2013-06-031-4/+6
|/ | | | | | | | | | | | | | | | | | Checkout [1] as an example of the test failures. In that particular cases, the failures is caused by the plus sign in the path being pass unescaped (buildd-cmake_2.8.9-1~bpo60+1-armel-3Lvkef) to the regexp. In addition to failures in the log, the following new tests also fail in 2.8.11: 243 - CTestTestMemcheckUnknown (Failed) 244 - CTestTestMemcheckUnknownQuoted (Failed) 248 - CTestTestMemcheckDummyValgrindFailPre (Failed) 249 - CTestTestMemcheckDummyValgrindFailPost (Failed) 250 - CTestTestMemcheckDummyPurify (Failed) 251 - CTestTestMemcheckDummyBC (Failed) 253 - CMake.List (Failed) [1] https://buildd.debian.org/status/fetch.php?pkg=cmake&arch=armel&ver=2.8.9-1~bpo60%2B1&stamp=1369243896
* Tests: Add generator toolset supportBrad King2013-02-0710-0/+10
| | | | | Propagate CMAKE_GENERATOR_TOOLSET through the test hierarchy so that all tests can build with the selected generator toolset, if any.
* CTest: add a check with a quoted memory checkerRolf Eike Beer2012-10-044-4/+39
|
* CTest: add a test for CTEST_CUSTOM_MEMCHECK_IGNORERolf Eike Beer2012-10-044-1/+45
|
* CTest: add tests that simulate memcheck runsRolf Eike Beer2012-10-0425-0/+354