Michal 'vorner' Vaner 2f69acbe9f
signal: Fix tests after importing & linking
* Don't use tokio-core any more for tests. That one brings tokio from
  crates.io instead of the current workspace and two versions of that
  don't want to cooperate.
* Guard unix-specific examples on windows.
* Leave CI setup to top-level directory.
2018-09-14 23:28:47 +02:00

20 lines
404 B
Rust

#![cfg(unix)]
extern crate libc;
pub mod support;
use support::*;
#[test]
fn simple() {
let mut rt = CurrentThreadRuntime::new().unwrap();
let signal = run_with_timeout(&mut rt, Signal::new(libc::SIGUSR1))
.expect("failed to create signal");
send_signal(libc::SIGUSR1);
run_with_timeout(&mut rt, signal.into_future())
.ok()
.expect("failed to get signal");
}