rust/src/test/run-pass/pipe-peek.rs
2012-07-10 22:00:46 -07:00

24 lines
302 B
Rust

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