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