This is an archive of the discontinued Mercurial Phabricator instance.

tests: use `f --newer` instead of `stat -c` in test-fix.t
ClosedPublic

Authored by durin42 on Apr 11 2018, 5:24 PM.

Details

Summary

Also increase sleep to two seconds so this test will likely pass on FAT32.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

durin42 created this revision.Apr 11 2018, 5:24 PM
indygreg accepted this revision.Apr 12 2018, 11:38 AM
This revision is now accepted and ready to land.Apr 12 2018, 11:38 AM
This revision was automatically updated to reflect the committed changes.
yuja added a subscriber: yuja.Apr 13 2018, 7:54 AM
yuja added inline comments.
tests/test-fix.t
495

Maybe cp -p to not increment a few microseconds?

499

This means mtime(foo.whole) < mtime(foo.whole.orig), but we
need to assert mtime(foo.whole.orig) >= mtime(foo.whole).