| 143 | } |
| 144 | |
| 145 | static int test5(int argc, char const* argv[]) |
| 146 | { |
| 147 | int r; |
| 148 | char const* cmd[4]; |
| 149 | (void)argc; |
| 150 | cmd[0] = argv[0]; |
| 151 | cmd[1] = "run"; |
| 152 | cmd[2] = "4"; |
| 153 | cmd[3] = 0; |
| 154 | fprintf(stdout, "Output on stdout before recursive test.\n"); |
| 155 | fprintf(stderr, "Output on stderr before recursive test.\n"); |
| 156 | fflush(stdout); |
| 157 | fflush(stderr); |
| 158 | r = runChild(cmd, kwsysProcess_State_Exception, |
| 159 | #ifdef CRASH_USING_ABORT |
| 160 | kwsysProcess_Exception_Other, |
| 161 | #else |
| 162 | kwsysProcess_Exception_Fault, |
| 163 | #endif |
| 164 | 1, 1, 1, 0, 15, 0, 1, 0, 0, 0); |
| 165 | fprintf(stdout, "Output on stdout after recursive test.\n"); |
| 166 | fprintf(stderr, "Output on stderr after recursive test.\n"); |
| 167 | fflush(stdout); |
| 168 | fflush(stderr); |
| 169 | return r; |
| 170 | } |
| 171 | |
| 172 | #define TEST6_SIZE (4096 * 2) |
| 173 | static void test6(int argc, char const* argv[]) |