| 33 | } diagnostics_paths_t; |
| 34 | |
| 35 | static void diagnostics_wait_ms(unsigned int milliseconds) { |
| 36 | struct timespec delay = { |
| 37 | .tv_sec = (time_t)(milliseconds / 1000U), |
| 38 | .tv_nsec = (long)((milliseconds % 1000U) * 1000000U), |
| 39 | }; |
| 40 | (void)cbm_nanosleep(&delay, NULL); |
| 41 | } |
| 42 | |
| 43 | #ifndef _WIN32 |
| 44 | static bool diagnostics_file_equals(const char *path, const char *expected) { |
no test coverage detected