11 Jul
2024
11 Jul
'24
12:43 p.m.
Show at least one test script that indicates the need to undo a commit that is more than 5 years old. You also just need to delete the desired section of code, instead of completely undoing the commit. Would like to see tests showing the rationality of completely undoing a commit. ``` #ifdef CLOCK_REALTIME_COARSE struct timespec res; /* Use CLOCK_REALTIME_COARSE if it has 1 ms or better resolution */ if (!clock_getres( CLOCK_REALTIME_COARSE, &res ) && res.tv_sec == 0 && res.tv_nsec <= 1000000) clock_id = CLOCK_REALTIME_COARSE; else #endif /* CLOCK_REALTIME_COARSE */ ``` -- https://gitlab.winehq.org/wine/wine/-/merge_requests/6007#note_75912