diff options
author | Brad King <brad.king@kitware.com> | 2014-08-11 13:30:22 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-08-11 13:30:22 (GMT) |
commit | 51c82c3a66f02192df4db5d51d95f7311bc2181f (patch) | |
tree | 777ae09ff86923433c847253c97fb2c2d4d5f3b0 /Source/kwsys/testProcess.c | |
parent | 3b0d634f70db6af5469e83bb7c14f687bfafda74 (diff) | |
parent | fe587db415b1cf728f42c5db55c3acbad7a9a529 (diff) | |
download | CMake-51c82c3a66f02192df4db5d51d95f7311bc2181f.zip CMake-51c82c3a66f02192df4db5d51d95f7311bc2181f.tar.gz CMake-51c82c3a66f02192df4db5d51d95f7311bc2181f.tar.bz2 |
Merge branch 'upstream-kwsys' into update-kwsys
Diffstat (limited to 'Source/kwsys/testProcess.c')
-rw-r--r-- | Source/kwsys/testProcess.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/kwsys/testProcess.c b/Source/kwsys/testProcess.c index 3d62822..47c3fb0 100644 --- a/Source/kwsys/testProcess.c +++ b/Source/kwsys/testProcess.c @@ -20,6 +20,7 @@ # include "Encoding.h.in" #endif +#include <assert.h> #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -104,6 +105,7 @@ static int test4(int argc, const char* argv[]) fprintf(stderr, "Output before crash on stderr from crash test.\n"); fflush(stdout); fflush(stderr); + assert(invalidAddress); /* Quiet Clang scan-build. */ /* Provoke deliberate crash by writing to the invalid address. */ *invalidAddress = 0; fprintf(stdout, "Output after crash on stdout from crash test.\n"); |