1#![warn(rust_2018_idioms)]
2#![cfg(all(feature = "full", unix))]
3
4use tokio::process::Command;
5
6#[tokio::test]
7async fn arg0() {
8 let mut cmd = Command::new("sh");
9 cmd.arg0("test_string").arg("-c").arg("echo $0");
10
11 let output = cmd.output().await.unwrap();
12 assert_eq!(output.stdout, b"test_string\n");
13}
14