| 1890 | } sp_stdout_logs_t; |
| 1891 | |
| 1892 | static void sp_stdout_log(const char *line, void *opaque) { |
| 1893 | sp_stdout_logs_t *log = opaque; |
| 1894 | if (log->count >= 4 || strlen(line) >= sizeof(log->lines[0])) { |
| 1895 | log->overflow = true; |
| 1896 | } else { |
| 1897 | memcpy(log->lines[log->count], line, strlen(line) + 1); |
| 1898 | } |
| 1899 | log->count++; |
| 1900 | } |
| 1901 | |
| 1902 | static bool sp_stdout_stderr_only(const sp_stdout_logs_t *log) { |
| 1903 | return !log->overflow && log->count == 2 && strcmp(log->lines[0], "stderr-first") == 0 && |
nothing calls this directly
no outgoing calls
no test coverage detected