Test child process exit code path.