MCPcopy Create free account
hub / github.com/Kitware/CMake / test8

Function test8

Source/kwsys/testProcess.c:213–235  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

211}
212
213static int test8(int argc, char const* argv[])
214{
215 /* Create a disowned grandchild to test handling of processes
216 that exit before their children. */
217 int r;
218 char const* cmd[4];
219 (void)argc;
220 cmd[0] = argv[0];
221 cmd[1] = "run";
222 cmd[2] = "108";
223 cmd[3] = 0;
224 fprintf(stdout, "Output on stdout before grandchild test.\n");
225 fprintf(stderr, "Output on stderr before grandchild test.\n");
226 fflush(stdout);
227 fflush(stderr);
228 r = runChild(cmd, kwsysProcess_State_Disowned, kwsysProcess_Exception_None,
229 1, 1, 1, 0, 10, 0, 1, 1, 0, 0);
230 fprintf(stdout, "Output on stdout after grandchild test.\n");
231 fprintf(stderr, "Output on stderr after grandchild test.\n");
232 fflush(stdout);
233 fflush(stderr);
234 return r;
235}
236
237static int test8_grandchild(int argc, char const* argv[])
238{

Callers 1

mainFunction · 0.85

Calls 1

runChildFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…