Skip to content

Commit

Permalink
Auto merge of #6756 - ehuss:fix-dirty_both_lib_and_test, r=alexcrichton
Browse files Browse the repository at this point in the history
Fix spurious error in dirty_both_lib_and_test.

On HFS, if it runs fast enough, the mtimes will be equal, causing it to fail to rebuild.

Seen on #6755 https://travis-ci.com/rust-lang/cargo/jobs/185412514
  • Loading branch information
bors committed Mar 19, 2019
2 parents d071687 + 0b4303d commit 0643c49
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/testsuite/freshness.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1697,6 +1697,10 @@ fn dirty_both_lib_and_test() {
.with_stdout_contains("[..]doit assert failure[..]")
.run();

if is_coarse_mtime() {
// #5918
sleep_ms(1000);
}
// Fix the mistake.
p.change_file("slib.rs", &slib(1));

Expand Down

0 comments on commit 0643c49

Please sign in to comment.