use std::process::{Command, Stdio};
#[test]
fn lex_lsp_binary_starts_and_stops() {
let exe = env!("CARGO_BIN_EXE_lex-lsp");
let mut child = Command::new(exe)
.stdin(Stdio::piped())
.stdout(Stdio::piped())
.stderr(Stdio::piped())
.spawn()
.expect("failed to start lex-lsp binary");
child.kill().expect("failed to stop lex-lsp binary");
let _ = child.wait();
}