Helper: create a file with content */
| 396 | |
| 397 | /* Helper: create a file with content */ |
| 398 | static int write_test_file(const char *path, const char *content) { |
| 399 | FILE *f = cbm_fopen(path, "wb"); |
| 400 | if (!f) |
| 401 | return -1; |
| 402 | fprintf(f, "%s", content); |
| 403 | fclose(f); |
| 404 | return 0; |
| 405 | } |
| 406 | |
| 407 | /* Helper: read a file into static buffer */ |
| 408 | static const char *read_test_file(const char *path) { |
no test coverage detected