summaryrefslogtreecommitdiffstats
path: root/testProcess.c
diff options
context:
space:
mode:
authorKWSys Robot <kwrobot@kitware.com>2014-08-07 13:55:30 (GMT)
committerBrad King <brad.king@kitware.com>2014-08-11 13:30:16 (GMT)
commitfe587db415b1cf728f42c5db55c3acbad7a9a529 (patch)
tree79cf4a96ddcd25c67b4c7036dfdc1e98a0b9e238 /testProcess.c
parent158c6d1cffe863fde284d4e5eeeb8129d40ce0e9 (diff)
downloadCMake-fe587db415b1cf728f42c5db55c3acbad7a9a529.zip
CMake-fe587db415b1cf728f42c5db55c3acbad7a9a529.tar.gz
CMake-fe587db415b1cf728f42c5db55c3acbad7a9a529.tar.bz2
KWSys 2014-08-07 (4d526097)
Extract upstream KWSys using the following shell commands. $ git archive --prefix=upstream-kwsys/ 4d526097 | tar x $ git shortlog --no-merges --abbrev=8 --format='%h %s' e787837a..4d526097 Brad King (2): 4791701a SystemTools: Remove ConvertWindowsCommandLineToUnixArguments method 4d526097 Add assert() to quiet Clang scan-build warnings Change-Id: I15e4ad710a8ad01f96761a89f2c1517f3c2aa835
Diffstat (limited to 'testProcess.c')
-rw-r--r--testProcess.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/testProcess.c b/testProcess.c
index 3d62822..47c3fb0 100644
--- a/testProcess.c
+++ b/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");