summaryrefslogtreecommitdiffstats
path: root/Tests/CTestTestCrash
Commit message (Collapse)AuthorAgeFilesLines
* Tests: Prevent compiler optimizing away test code in CTestTestCrashWilliam R. Dieter2021-11-021-1/+1
| | | | | | | | | | | | | | | The CTestTestCrash tries to force a crash by dereferencing a NULL pointer. The oneAPI 2021.4 C compiler notices that the pointer and the value fetched from the pointer are never used and optimizes away the dereferencing of the NULL pointer, which prevents the crash, causing the test to fail. This change adds the `volatile` keyword the pointer to prevent the compiler optimizing it away. Removing a reference to a `volatile` variable is illegal because access to a `volatile` variable could have side effects not observable by the compiler. Signed-off-by: William R. Dieter <william.r.dieter@intel.com>
* Tests: bump cmake_minimum_required version to 2.8.12Rolf Eike Beer2021-04-052-2/+2
| | | | | This needlessly produces warnings during the test runs that no-one sees but that are distracting when actually inspecting the logs.
* CTest: Remove special case for Dart version <= 1Regina Pfeifer2018-11-281-2/+0
|
* Remove unnecessary CTEST_PROJECT_NAME variablesRegina Pfeifer2018-11-201-1/+0
|
* Revise C++ coding style using clang-formatKitware Robot2016-05-161-1/+1
| | | | | | | | | | | | | Run the `Utilities/Scripts/clang-format.bash` script to update all our C++ code to a new style defined by `.clang-format`. Use `clang-format` version 3.8. * If you reached this commit for a line in `git blame`, re-run the blame operation starting at the parent of this commit to see older history for the content. * See the parent commit for instructions to rebase a change across this style transition commit.
* Tests: Add generator platform supportBrad King2014-09-101-0/+1
| | | | | Propagate CMAKE_GENERATOR_PLATFORM through the test hierarchy so that all tests can build with the selected generator platform, if any.
* Update CDash server URLBrad King2014-06-241-2/+2
| | | | It is now at open.cdash.org and does not start in "/CDash".
* Tests: Drop CMAKE_TEST_GENERATOR(|_TOOLSET) variablesBrad King2014-03-031-2/+2
| | | | s/CMAKE_TEST_GENERATOR/CMAKE_GENERATOR/g
* CTestTest*: Update minimum required CMake to 2.4Brad King2013-10-231-1/+1
| | | | We will soon deprecate support for compatibility with CMake < 2.4.
* Tests: Add generator toolset supportBrad King2013-02-071-0/+1
| | | | | Propagate CMAKE_GENERATOR_TOOLSET through the test hierarchy so that all tests can build with the selected generator toolset, if any.
* Convert CMake-language commands to lower caseKitware Robot2012-08-132-15/+15
| | | | | | | | | | | | | | | | | Ancient CMake versions required upper-case commands. Later command names became case-insensitive. Now the preferred style is lower-case. Run the following shell code: cmake --help-command-list | grep -v "cmake version" | while read c; do echo 's/\b'"$(echo $c | tr '[:lower:]' '[:upper:]')"'\(\s*\)(/'"$c"'\1(/g' done >convert.sed && git ls-files -z -- bootstrap '*.cmake' '*.cmake.in' '*CMakeLists.txt' | egrep -z -v '^(Utilities/cm|Source/kwsys/)' | xargs -0 sed -i -f convert.sed && rm convert.sed
* Tests: Eliminate unnecessary files and variables.David Cole2011-01-281-3/+0
| | | | | | | | | | | | | | | | | | | | | 1: The CTestTestFailedSubmits tests do not need to run the CTEST_MEMCHECK command. It is covered by the CTestTest2 test. If more coverage *is* required, choose a test that runs by itself once to add it to... This one gets used several times in a loop to test submission failure via the various submission protocols. With memchecking on, each test here takes 1000 seconds or more on a "fast" build... 2: Other ctest tests do not need any of the CTEST_MEMORYCHECK_* variables defined. They don't even call CTEST_MEMCHECK, or -D NightlyMemCheck, or anything. So: remove the unnecessary set calls. 3: CTestTest3 has gone intentionally unused for months because it did not add any coverage and caused no ends of sporadic randomish failures when network connectivity was spotty. Remove its directory. Never add it again.
* Added a unit test for running a test command which exists but is not an ↵Zach Mullen2009-12-071-1/+0
| | | | executable, because it previously caused the outer ctest process to fail.
* Remove unnecessary configure time operations from CTestTest* testsZach Mullen2009-12-021-9/+0
|
* Remove unused code from CTest test suiteBrad King2009-12-021-12/+1
| | | | | We remove from Tests/CTestTest*/CMakeLists.txt some historical cruft that is no longer used by the test suite.
* Make sure CTestTest scripts honor the CMAKE_TEST_GENERATOR so that if the ↵Bill Hoffman2009-09-241-7/+6
| | | | generator to build cmake is different than the one used for tests (watcom) is used.
* Added test coverage for ctest. Covers WILL_FAIL condition, tests that do ↵Zach Mullen2009-09-184-0/+67
not build, tests that segfault, and test executable not found (bad command), as well as some pass and fail regular expressions.