auto merge of #7195 : brson/rust/timertest, r=bstrie

This commit is contained in:
bors 2013-06-17 06:52:14 -07:00
commit 6fbd5383f9

View file

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