std: Clarify what timers do with zero and negative durations

Add tests. Also fix a bunch of broken time tests.
This commit is contained in:
Brian Anderson
2014-07-30 20:07:41 -07:00
parent 734834c7d6
commit 63cd4acf53
6 changed files with 111 additions and 31 deletions

View File

@@ -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");
})