Closed
Description
The test:
extern mod std;
use std::timer::recv_timeout;
use std::uv_global_loop;
use core::comm::stream;
static TEST_TIMEOUT: uint = 500u;
fn main() {
let mut (port, _) = stream::<task::TaskResult>();
task::task()
.future_result(|p| {
port = p;
})
.spawn(|| {
debug!("the task has run");
});
let res = recv_timeout(&uv_global_loop::get(), TEST_TIMEOUT, &port);
assert!(res == Some(task::Success));
}
Fails the assertion, and then the program hangs up with:
rust: task failed at 'assertion failed: res == Some(task::Success)', recv-timeout.rs:17
rust: domain main @0x864edc0 root task failed
rust: task failed at 'killed', /home/mzabaluev/src/rust/src/libcore/pipes.rs:314
rust: task failed at 'killed', /home/mzabaluev/src/rust/src/libcore/pipes.rs:314
As a matter of fact, recv_timeout
has not been able to wake up on any type of input I have tried.
Metadata
Metadata
Assignees
Labels
No labels