summaryrefslogtreecommitdiffstats
path: root/Tests/CTestTestCrash/crash.cxx
diff options
context:
space:
mode:
authorZach Mullen <zach.mullen@kitware.com>2009-09-18 16:16:46 (GMT)
committerZach Mullen <zach.mullen@kitware.com>2009-09-18 16:16:46 (GMT)
commit78e0bfa0fdd2376e89bb7750904db57b5c8bf104 (patch)
tree8201367a03986be0731ce330acf79921f0a61dd6 /Tests/CTestTestCrash/crash.cxx
parent311eb30672c7f098404a6511f71b930f8aad65d7 (diff)
downloadCMake-78e0bfa0fdd2376e89bb7750904db57b5c8bf104.zip
CMake-78e0bfa0fdd2376e89bb7750904db57b5c8bf104.tar.gz
CMake-78e0bfa0fdd2376e89bb7750904db57b5c8bf104.tar.bz2
Added test coverage for ctest. Covers WILL_FAIL condition, tests that do not build, tests that segfault, and test executable not found (bad command), as well as some pass and fail regular expressions.
Diffstat (limited to 'Tests/CTestTestCrash/crash.cxx')
-rw-r--r--Tests/CTestTestCrash/crash.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/Tests/CTestTestCrash/crash.cxx b/Tests/CTestTestCrash/crash.cxx
new file mode 100644
index 0000000..bc9e096
--- /dev/null
+++ b/Tests/CTestTestCrash/crash.cxx
@@ -0,0 +1,6 @@
+//causes a segfault
+int main()
+{
+ int* ptr = 0;
+ *ptr = 1;
+}