Sha256: 9e4c518ccee4b74603ea9ac2219c27739666e54ee14e7a670f7a27aca7255428
Contents?: true
Size: 329 Bytes
Versions: 4
Compression:
Stored size: 329 Bytes
Contents
#![warn(rust_2018_idioms)] #![cfg(all(feature = "full", unix, not(miri)))] use tokio::process::Command; #[tokio::test] async fn arg0() { let mut cmd = Command::new("sh"); cmd.arg0("test_string").arg("-c").arg("echo $0"); let output = cmd.output().await.unwrap(); assert_eq!(output.stdout, b"test_string\n"); }
Version data entries
4 entries across 4 versions & 1 rubygems