2012-06-12 19:02:24 -07:00
|
|
|
// xfail-fast
|
2012-06-12 16:41:11 -07:00
|
|
|
// aux-build:test_comm.rs
|
|
|
|
|
|
|
|
use test_comm;
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let p = test_comm::port();
|
|
|
|
|
2012-08-06 12:34:08 -07:00
|
|
|
match none::<int> {
|
2012-08-03 19:59:04 -07:00
|
|
|
none => {}
|
|
|
|
some(_) =>{
|
2012-06-12 16:41:11 -07:00
|
|
|
if test_comm::recv(p) == 0 {
|
2012-07-30 16:01:07 -07:00
|
|
|
error!{"floop"};
|
2012-06-12 16:41:11 -07:00
|
|
|
}
|
|
|
|
else {
|
2012-07-30 16:01:07 -07:00
|
|
|
error!{"bloop"};
|
2012-06-12 16:41:11 -07:00
|
|
|
}
|
|
|
|
}}
|
|
|
|
}
|