test_exit/
test_exit.rs

1use async_ffmpeg_sidecar::command::FfmpegCommand;
2use futures_util::stream::StreamExt;
3
4#[tokio::main]
5async fn main() {
6  let mut child = FfmpegCommand::new()
7    .arg("-report")
8    .testsrc()
9    .rawvideo()
10    .print_command()
11    .spawn()
12    .unwrap();
13  let count = child.stream().unwrap().filter_progress().count().await;
14
15  assert!(count <= 1);
16}