Sha256: 785d801cf281230e3208512820e7d71b4d8362b8cf33fc72235da370e10983a8
Contents?: true
Size: 318 Bytes
Versions: 34
Compression:
Stored size: 318 Bytes
Contents
#![warn(rust_2018_idioms)] #![cfg(all(feature = "full", unix))] 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
34 entries across 34 versions & 1 rubygems