mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-13 16:22:57 +00:00
auto merge of #7195 : brson/rust/timertest, r=bstrie
This commit is contained in:
commit
6fbd5383f9
@ -143,7 +143,7 @@ mod test {
|
||||
let count_ptr: *mut int = &mut count;
|
||||
let mut loop_ = Loop::new();
|
||||
let mut timer = TimerWatcher::new(&mut loop_);
|
||||
do timer.start(10, 20) |timer, status| {
|
||||
do timer.start(1, 2) |timer, status| {
|
||||
assert!(status.is_none());
|
||||
unsafe {
|
||||
*count_ptr += 1;
|
||||
@ -166,7 +166,7 @@ mod test {
|
||||
|
||||
// Restart the original timer
|
||||
let mut timer = timer;
|
||||
do timer.start(10, 0) |timer, _| {
|
||||
do timer.start(1, 0) |timer, _| {
|
||||
unsafe { *count_ptr += 1; }
|
||||
timer.close(||());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user