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

Function test6

Source/kwsys/testProcess.c:173–189  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

171
172#define TEST6_SIZE (4096 * 2)
173static void test6(int argc, char const* argv[])
174{
175 int i;
176 char runaway[TEST6_SIZE + 1];
177 (void)argc;
178 (void)argv;
179 for (i = 0; i < TEST6_SIZE; ++i) {
180 runaway[i] = '.';
181 }
182 runaway[TEST6_SIZE] = '\n';
183
184 /* Generate huge amounts of output to test killing. */
185 for (;;) {
186 fwrite(runaway, 1, TEST6_SIZE + 1, stdout);
187 fflush(stdout);
188 }
189}
190
191/* Define MINPOLL to be one more than the number of times output is
192 written. Define MAXPOLL to be the largest number of times a loop

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…