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

Version Path
wasmtime-25.0.2 ./ext/cargo-vendor/tokio-1.40.0/tests/process_arg0.rs
wasmtime-25.0.1 ./ext/cargo-vendor/tokio-1.39.3/tests/process_arg0.rs
wasmtime-25.0.0 ./ext/cargo-vendor/tokio-1.39.3/tests/process_arg0.rs
wasmtime-24.0.0 ./ext/cargo-vendor/tokio-1.39.3/tests/process_arg0.rs
wasmtime-23.0.2 ./ext/cargo-vendor/tokio-1.36.0/tests/process_arg0.rs
wasmtime-22.0.0 ./ext/cargo-vendor/tokio-1.36.0/tests/process_arg0.rs
wasmtime-21.0.1 ./ext/cargo-vendor/tokio-1.36.0/tests/process_arg0.rs
wasmtime-20.0.2 ./ext/cargo-vendor/tokio-1.36.0/tests/process_arg0.rs
wasmtime-20.0.0 ./ext/cargo-vendor/tokio-1.36.0/tests/process_arg0.rs
wasmtime-18.0.3 ./ext/cargo-vendor/tokio-1.36.0/tests/process_arg0.rs
wasmtime-17.0.1 ./ext/cargo-vendor/tokio-1.35.1/tests/process_arg0.rs
wasmtime-17.0.0 ./ext/cargo-vendor/tokio-1.35.1/tests/process_arg0.rs
wasmtime-16.0.0 ./ext/cargo-vendor/tokio-1.35.1/tests/process_arg0.rs
wasmtime-15.0.1 ./ext/cargo-vendor/tokio-1.35.1/tests/process_arg0.rs
wasmtime-15.0.0 ./ext/cargo-vendor/tokio-1.35.1/tests/process_arg0.rs
wasmtime-14.0.4 ./ext/cargo-vendor/tokio-1.33.0/tests/process_arg0.rs
wasmtime-14.0.3 ./ext/cargo-vendor/tokio-1.33.0/tests/process_arg0.rs
wasmtime-14.0.1 ./ext/cargo-vendor/tokio-1.33.0/tests/process_arg0.rs
wasmtime-14.0.0 ./ext/cargo-vendor/tokio-1.33.0/tests/process_arg0.rs
wasmtime-13.0.0 ./ext/cargo-vendor/tokio-1.32.0/tests/process_arg0.rs