about summary refs log tree commit diff
path: root/src/libstd/io/process.rs
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2014-07-30 20:07:41 -0700
committerBrian Anderson <banderson@mozilla.com>2014-08-13 11:31:47 -0700
commit63cd4acf535f8df177459559fe2d7e6ab390c6d8 (patch)
tree4f10ee436e87176f9141071d2a7a13d5ee499ba8 /src/libstd/io/process.rs
parent734834c7d6e4862c8348a8c9660bb338773047ca (diff)
downloadrust-63cd4acf535f8df177459559fe2d7e6ab390c6d8.tar.gz
rust-63cd4acf535f8df177459559fe2d7e6ab390c6d8.zip
std: Clarify what timers do with zero and negative durations
Add tests. Also fix a bunch of broken time tests.
Diffstat (limited to 'src/libstd/io/process.rs')
-rw-r--r--src/libstd/io/process.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/io/process.rs b/src/libstd/io/process.rs
index 41a621f6edf..3dd4343c5f4 100644
--- a/src/libstd/io/process.rs
+++ b/src/libstd/io/process.rs
@@ -976,7 +976,7 @@ mod tests {
                 assert!(!p.wait().unwrap().success());
                 return
             }
-            timer::sleep_ms(100);
+            timer::sleep(Duration::milliseconds(100));
         }
         fail!("never saw the child go away");
     })