Helper: create a file with content */
| 169 | |
| 170 | /* Helper: create a file with content */ |
| 171 | static int write_test_file(const char *path, const char *content) { |
| 172 | FILE *f = cbm_fopen(path, "wb"); |
| 173 | if (!f) |
| 174 | return -1; |
| 175 | fprintf(f, "%s", content); |
| 176 | fclose(f); |
| 177 | return 0; |
| 178 | } |
| 179 | |
| 180 | /* Helper: read a file into static buffer */ |
| 181 | static const char *read_test_file(const char *path) { |
no test coverage detected