| 41 | } |
| 42 | |
| 43 | static bool gf_write(const char *path, const void *bytes, size_t length) { |
| 44 | FILE *file = cbm_fopen(path, "wb"); |
| 45 | if (!file) |
| 46 | return false; |
| 47 | bool ok = fwrite(bytes, 1, length, file) == length; |
| 48 | if (fclose(file) != 0) |
| 49 | ok = false; |
| 50 | return ok; |
| 51 | } |
| 52 | |
| 53 | /* Native executable fixture for Git's optional diff/textconv command. Extra |
| 54 | * arguments added by Git are deliberately ignored. Normal harness entry keeps |
no test coverage detected