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:
@@ -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");
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user