uutils / coreutils

Cross-platform Rust rewrite of the GNU coreutils
https://uutils.github.io/
MIT License
17.82k stars 1.28k forks source link

mv: remove `sleep` in tests #6880

Closed cakebaker closed 2 days ago

cakebaker commented 5 days ago

So far std::thread::sleep was used in the tests to ensure that fileA is older than fileB. With this PR, the same is done by calling set_modified on the "older" file, thus speeding up the tests.

github-actions[bot] commented 5 days ago

GNU testsuite comparison:

Skip an intermittent issue tests/tail/inotify-dir-recreate (fails in this run but passes in the 'main' branch)
Congrats! The gnu test tests/mv/dup-source is no longer failing!