diff options
| author | Brian Anderson <banderson@mozilla.com> | 2014-07-30 20:07:41 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2014-08-13 11:31:47 -0700 |
| commit | 63cd4acf535f8df177459559fe2d7e6ab390c6d8 (patch) | |
| tree | 4f10ee436e87176f9141071d2a7a13d5ee499ba8 /src/libstd/io/process.rs | |
| parent | 734834c7d6e4862c8348a8c9660bb338773047ca (diff) | |
| download | rust-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.rs | 2 |
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"); }) |
