Append one expected record to `buf`. */
| 24652 | |
| 24653 | /* Append one expected record to `buf`. */ |
| 24654 | static void scan_expect(char *buf, size_t cap, const char *path, int line, const char *content) { |
| 24655 | size_t used = strlen(buf); |
| 24656 | snprintf(buf + used, cap - used, "%s" SCAN_FS "%d" SCAN_FS "%s\n", path, line, content); |
| 24657 | } |
| 24658 | |
| 24659 | TEST(search_code_scan_in_process_writes_grep_records) { |
| 24660 | scan_fixture_t fx; |