rust/src/test/run-pass/pipe-peek.rs
2012-09-05 12:32:05 -07:00

22 lines
268 B
Rust

// xfail-pretty
use std;
use std::timer::sleep;
use std::uv;
proto! oneshot (
waiting:send {
signal -> !
}
)
fn main() {
let (c, p) = oneshot::init();
assert !pipes::peek(&p);
oneshot::client::signal(c);
assert pipes::peek(&p);
}