@@ -9,8 +9,7 @@ use std::thread;
9
9
use cargo_test_support:: prelude:: * ;
10
10
use cargo_test_support:: registry:: Package ;
11
11
use cargo_test_support:: {
12
- basic_lib_manifest, basic_manifest, is_coarse_mtime, project, rustc_host, rustc_host_env,
13
- sleep_ms, str,
12
+ basic_lib_manifest, basic_manifest, project, rustc_host, rustc_host_env, str,
14
13
} ;
15
14
16
15
use super :: death;
@@ -115,9 +114,6 @@ fn rebuild_sub_package_then_while_package() {
115
114
"# ] ] )
116
115
. run ( ) ;
117
116
118
- if is_coarse_mtime ( ) {
119
- sleep_ms ( 1000 ) ;
120
- }
121
117
p. change_file ( "b/src/lib.rs" , "pub fn b() {}" ) ;
122
118
123
119
p. cargo ( "build -Zchecksum-freshness -pb -v" )
@@ -600,7 +596,6 @@ fn rebuild_tests_if_lib_changes() {
600
596
. masquerade_as_nightly_cargo ( & [ "checksum-freshness" ] )
601
597
. run ( ) ;
602
598
603
- sleep_ms ( 1000 ) ;
604
599
p. change_file ( "src/lib.rs" , "" ) ;
605
600
606
601
p. cargo ( "build -Zchecksum-freshness -v" )
@@ -966,7 +961,6 @@ fn no_rebuild_when_rename_dir() {
966
961
// make sure the most recently modified file is `src/lib.rs`, not
967
962
// `Cargo.toml`, to expose a historical bug where we forgot to strip the
968
963
// `Cargo.toml` path from looking for the package root.
969
- cargo_test_support:: sleep_ms ( 100 ) ;
970
964
fs:: write ( p. root ( ) . join ( "src/lib.rs" ) , "" ) . unwrap ( ) ;
971
965
972
966
p. cargo ( "build -Zchecksum-freshness" )
@@ -1510,14 +1504,8 @@ fn bust_patched_dep() {
1510
1504
p. cargo ( "build -Zchecksum-freshness" )
1511
1505
. masquerade_as_nightly_cargo ( & [ "checksum-freshness" ] )
1512
1506
. run ( ) ;
1513
- if is_coarse_mtime ( ) {
1514
- sleep_ms ( 1000 ) ;
1515
- }
1516
1507
1517
1508
p. change_file ( "reg1new/src/lib.rs" , "// modified" ) ;
1518
- if is_coarse_mtime ( ) {
1519
- sleep_ms ( 1000 ) ;
1520
- }
1521
1509
1522
1510
p. cargo ( "build -Zchecksum-freshness -v" )
1523
1511
. masquerade_as_nightly_cargo ( & [ "checksum-freshness" ] )
@@ -1622,7 +1610,6 @@ fn rebuild_on_mid_build_file_modification() {
1622
1610
1623
1611
let t = thread:: spawn ( move || {
1624
1612
let socket = server. accept ( ) . unwrap ( ) . 0 ;
1625
- sleep_ms ( 1000 ) ;
1626
1613
let mut file = OpenOptions :: new ( )
1627
1614
. write ( true )
1628
1615
. append ( true )
@@ -1741,10 +1728,6 @@ fn dirty_both_lib_and_test() {
1741
1728
. with_stdout_data ( "...\n [..]doit assert failure[..]\n ..." )
1742
1729
. run ( ) ;
1743
1730
1744
- if is_coarse_mtime ( ) {
1745
- // #5918
1746
- sleep_ms ( 1000 ) ;
1747
- }
1748
1731
// Fix the mistake.
1749
1732
p. change_file ( "slib.rs" , & slib ( 1 ) ) ;
1750
1733
@@ -1783,9 +1766,6 @@ fn script_fails_stay_dirty() {
1783
1766
p. cargo ( "build -Zchecksum-freshness" )
1784
1767
. masquerade_as_nightly_cargo ( & [ "checksum-freshness" ] )
1785
1768
. run ( ) ;
1786
- if is_coarse_mtime ( ) {
1787
- sleep_ms ( 1000 ) ;
1788
- }
1789
1769
p. change_file ( "helper.rs" , r#"pub fn doit() {panic!("Crash!");}"# ) ;
1790
1770
p. cargo ( "build -Zchecksum-freshness" )
1791
1771
. masquerade_as_nightly_cargo ( & [ "checksum-freshness" ] )
0 commit comments