From 0b4303d15bc26b23f30ff9c8ca47534b8c148a5c Mon Sep 17 00:00:00 2001 From: Eric Huss Date: Sat, 16 Mar 2019 11:00:13 -0700 Subject: [PATCH] Fix spurious error in dirty_both_lib_and_test. --- tests/testsuite/freshness.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/testsuite/freshness.rs b/tests/testsuite/freshness.rs index 2ebb4affd86..7482aad4b1f 100644 --- a/tests/testsuite/freshness.rs +++ b/tests/testsuite/freshness.rs @@ -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));