diff options
| author | bors <bors@rust-lang.org> | 2022-12-27 18:13:23 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-12-27 18:13:23 +0000 |
| commit | 92c1937a90e5b6f20fa6e87016d6869da363972e (patch) | |
| tree | 7b2ff592ca5e6039326aead52a9aa562d18c938e /src | |
| parent | db7962532610cfbfb9be17e8d6c1b48acf5ed184 (diff) | |
| parent | eb63dea57f4e7d9f07810515b0e43966fc4d78e4 (diff) | |
| download | rust-92c1937a90e5b6f20fa6e87016d6869da363972e.tar.gz rust-92c1937a90e5b6f20fa6e87016d6869da363972e.zip | |
Auto merge of #97176 - kraktus:cmd_debug, r=the8472
More verbose `Debug` implementation of `std::process:Command` Mainly based on commit: https://github.com/zackmdavis/rust/commit/ccc019aabfdd550944c049625e66c92c815ea1d0 from https://github.com/zackmdavis close https://github.com/rust-lang/rust/issues/42200
Diffstat (limited to 'src')
| -rw-r--r-- | src/test/ui/command/command-argv0-debug.rs | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/test/ui/command/command-argv0-debug.rs b/src/test/ui/command/command-argv0-debug.rs deleted file mode 100644 index 4aba1229f29..00000000000 --- a/src/test/ui/command/command-argv0-debug.rs +++ /dev/null @@ -1,21 +0,0 @@ -// run-pass - -// ignore-windows - this is a unix-specific test -// ignore-emscripten no processes -// ignore-sgx no processes -use std::os::unix::process::CommandExt; -use std::process::Command; - -fn main() { - let mut command = Command::new("some-boring-name"); - - assert_eq!(format!("{:?}", command), r#""some-boring-name""#); - - command.args(&["1", "2", "3"]); - - assert_eq!(format!("{:?}", command), r#""some-boring-name" "1" "2" "3""#); - - command.arg0("exciting-name"); - - assert_eq!(format!("{:?}", command), r#"["some-boring-name"] "exciting-name" "1" "2" "3""#); -} |
