mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 23:34:48 +00:00
3a5eb35577
Which enables ui tests to use auxiliary binaries. See the added self-test for an example.
10 lines
266 B
Rust
10 lines
266 B
Rust
//@ ignore-cross-compile because we run the compiled code
|
|
//@ aux-bin: print-it-works.rs
|
|
//@ run-pass
|
|
|
|
fn main() {
|
|
let stdout =
|
|
std::process::Command::new("auxiliary/bin/print-it-works").output().unwrap().stdout;
|
|
assert_eq!(stdout, b"it works\n");
|
|
}
|