]> git.proxmox.com Git - cargo.git/commit
More aggresively move_into_the_past for tests
authorAlex Crichton <alex@alexcrichton.com>
Wed, 5 Nov 2014 22:00:38 +0000 (14:00 -0800)
committerAlex Crichton <alex@alexcrichton.com>
Wed, 5 Nov 2014 22:33:34 +0000 (14:33 -0800)
commit76305ddfa0c5df1998d2b18e856357b5b0de9374
tree138417271e9524b1ec4761ad14483933f830b4df
parent6e94e581b333c703ae83e23d785be58f735e810c
More aggresively move_into_the_past for tests

Right now we're accidentally not actually leveraging this function well in some
tests due to this sequence of events:

1. The tests run at time X, building artifacts that remember the fingerprint is
   at time X.
2. The entire project is moved back one hour to (X-1).
3. A new file is created, at time X (second-level resolution on some systems).
4. On a rebuild, the maximum mtime is still X (due to the new file).

For this reason there are some more calls to move_into_the_past() to push files
back another hour after they've been created to make sure the maximum mtime is
(X-1), or something different than X.
tests/test_cargo_compile_custom_build.rs
tests/test_cargo_features.rs