| 2841 | } |
| 2842 | |
| 2843 | static bool ptr_changed(pt_fixture *fx, size_t index, bool missing) { |
| 2844 | cbm_pinned_tree_control_t control = ptr_control(); |
| 2845 | cbm_pinned_tree_error_t error; |
| 2846 | unsigned char byte = 0xa5; |
| 2847 | size_t copied = SIZE_MAX; |
| 2848 | cbm_pinned_tree_status_t status = |
| 2849 | cbm_pinned_tree_read_prefix(fx->tree, index, PT_LARGE, &byte, 1, &copied, &control, &error); |
| 2850 | bool typed = status == CBM_PINNED_TREE_CHANGED || (missing && status == CBM_PINNED_TREE_IO); |
| 2851 | return pt_h_tree_step("prefix-read", "native-change", typed && error.status == status, status, |
| 2852 | &error) && |
| 2853 | copied == 0 && ptr_disposal(fx->tree); |
| 2854 | } |
| 2855 | |
| 2856 | static bool ptr_change_suffix(const char *path) { |
| 2857 | if (!pt_make_writable(path)) |
no test coverage detected