| 49 | } |
| 50 | |
| 51 | static int fixture_file_equals(const char *path, const char *expected) { |
| 52 | FILE *fp = cbm_fopen(path, "rb"); |
| 53 | if (!fp) { |
| 54 | return 0; |
| 55 | } |
| 56 | char buf[64] = {0}; |
| 57 | size_t n = fread(buf, 1, sizeof(buf), fp); |
| 58 | int close_rc = fclose(fp); |
| 59 | size_t expected_len = strlen(expected); |
| 60 | return close_rc == 0 && n == expected_len && memcmp(buf, expected, expected_len) == 0; |
| 61 | } |
| 62 | |
| 63 | static int count_temp_outputs_for(const char *path) { |
| 64 | char dir[256]; |
no test coverage detected