Rewrite every fixture file with a second definition. An unchanged repo * routes incremental_manifest → incremental.noop (nothing is re-extracted, so * no gate can fire); changing all 64 files makes the next run re-extract them * all through the parallel path. */
| 20418 | * no gate can fire); changing all 64 files makes the next run re-extract them |
| 20419 | * all through the parallel path. */ |
| 20420 | static bool mutate_backpressure_fixture(void) { |
| 20421 | for (int i = 0; i < 64; i++) { |
| 20422 | char path[512]; |
| 20423 | snprintf(path, sizeof(path), "%s/f%02d.go", g_tmpdir, i); |
| 20424 | FILE *f = fopen(path, "w"); |
| 20425 | if (!f) { |
| 20426 | return false; |
| 20427 | } |
| 20428 | fprintf(f, |
| 20429 | "package main\n\nfunc F%02d() int {\n\treturn %d\n}\n\n" |
| 20430 | "func G%02d() int {\n\treturn F%02d() + 1\n}\n", |
| 20431 | i, i, i, i); |
| 20432 | fclose(f); |
| 20433 | } |
| 20434 | return true; |
| 20435 | } |
| 20436 | |
| 20437 | /* Whole-file read for byte-identity assertions on a published database. */ |
| 20438 | static unsigned char *read_file_bytes(const char *path, size_t *len_out) { |