| 171 | |
| 172 | #define TEST6_SIZE (4096 * 2) |
| 173 | static 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 |
no outgoing calls
no test coverage detected
searching dependent graphs…