A real live guard, never an invented pointer, verifies clearing and isolation. */
| 128 | |
| 129 | /* A real live guard, never an invented pointer, verifies clearing and isolation. */ |
| 130 | static bool pv2_failure(const void *p, size_t n, const char *t, size_t m, |
| 131 | const cbm_coverage_parse_limits_t *limits, |
| 132 | cbm_coverage_parse_status_t expected, cbm_coverage_map_t *guard) { |
| 133 | cbm_coverage_map_t *out = guard; |
| 134 | cbm_coverage_parse_status_t status = |
| 135 | cbm_coverage_map_parse_v2(p, n, t, m, limits, NULL, NULL, &out); |
| 136 | bool ok = status == expected && out == NULL; |
| 137 | if (out != guard) |
| 138 | cbm_coverage_map_free(out); |
| 139 | return ok; |
| 140 | } |
| 141 | |
| 142 | static bool pv2_golden_shape(const cbm_coverage_map_t *map) { |
| 143 | static const unsigned char name[] = {'a', 0, 'b'}; |
no test coverage detected