| 2186 | * into the log spam the whole change is meant to avoid. */ |
| 2187 | static int sustained_log_hits = 0; |
| 2188 | static void sustained_log_sink(const char *line) { |
| 2189 | if (line && strstr(line, "watcher.index.sustained_failure") != NULL) { |
| 2190 | sustained_log_hits++; |
| 2191 | } |
| 2192 | } |
| 2193 | |
| 2194 | TEST(watcher_sustained_failure_logs_once_issue2015) { |
| 2195 | char tmpdir[256]; |
nothing calls this directly
no outgoing calls
no test coverage detected