| 3068 | } |
| 3069 | |
| 3070 | static bool ptr_present(const char *path) { |
| 3071 | #ifdef _WIN32 |
| 3072 | wchar_t wide[PT_PATH]; |
| 3073 | return pt_wide(path, wide) && GetFileAttributesW(wide) != INVALID_FILE_ATTRIBUTES; |
| 3074 | #else |
| 3075 | struct stat st; |
| 3076 | return lstat(path, &st) == 0; |
| 3077 | #endif |
| 3078 | } |
| 3079 | |
| 3080 | static bool ptr_fault_case(pt_fixture *fx, cbm_pinned_tree_read_fault_t fault, bool corrupt) { |
| 3081 | if (!ptr_start(fx)) |
no test coverage detected