Logo
Explore Help
Register Sign In
rust-lang/rust
1
0
Fork 0
You've already forked rust
Code Issues Pull Requests Actions 1 Packages Projects Releases Wiki Activity
Files
901b340c1f5d208561d4261cc3ee634973b35326
rust/tests/run-make/windows-spawn/spawn.rs

11 lines
273 B
Rust
Raw Normal View History

Add run-make test for Command::spawn on Windows Make sure args aren't interpreted as part of the program name.
2017-06-05 17:57:32 +01:00
use std::io::ErrorKind;
use std::process::Command;
fn main() {
// Make sure it doesn't try to run "hopefullydoesntexist bar.exe".
Convert run-make/windows-spawn to rmake
2024-05-29 13:12:45 +00:00
assert_eq!(
Command::new("hopefullydoesntexist").arg("bar").spawn().unwrap_err().kind(),
ErrorKind::NotFound
Run rustfmt on `tests/run-make/`. With the exception of `tests/run-make/translation/test.rs`, which has a syntax error. The expected output in `rustdoc-error-lines/rmake.rs`'s required slight tweaking. The two `reproducible-build.rs` files need `// ignore-tidy-linelength` because rustfmt produces lines longer than 100 chars, which tidy doesn't like, yuk.
2024-05-29 15:01:33 +10:00
);
Add run-make test for Command::spawn on Windows Make sure args aren't interpreted as part of the program name.
2017-06-05 17:57:32 +01:00
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 1917ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API