laputa-async-process 0.3.0

Async interface for working with processes
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! Sleep test.

use async_process::Command;
use futures_lite::future::block_on;

#[cfg(unix)]
#[test]
fn unix_sleep() {
    block_on(async {
        let status = Command::new("sleep").arg("1").status().await.unwrap();
        assert!(status.success());
    });
}