rust/src/test/run-pass/pipe-peek.rs

22 lines
275 B
Rust

// xfail-pretty
extern mod 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);
}