| 727 | } |
| 728 | |
| 729 | static int pt_finish(pt_fixture *fx, int result) { |
| 730 | bool closed = pt_close_one(&fx->tree) && pt_close_one(&fx->second); |
| 731 | cbm_git_facts_free(fx->facts); |
| 732 | if (!closed) { |
| 733 | fprintf(stderr, "pinned-tree fixture retained for disposition: %s\n", fx->parent); |
| 734 | return 1; |
| 735 | } |
| 736 | if (fx->parent[0] && th_rmtree(fx->parent) != 0) |
| 737 | result = 1; |
| 738 | if (fx->home[0] && th_rmtree(fx->home) != 0) |
| 739 | result = 1; |
| 740 | cbm_arena_destroy(&fx->arena); |
| 741 | return result; |
| 742 | } |
| 743 | |
| 744 | static size_t pt_total(const pt_fixture *fx) { |
| 745 | size_t total = 0; |
no test coverage detected