We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7a5b3d1 + 592c210 commit d7ba83aCopy full SHA for d7ba83a
tests/util/mod.rs
@@ -3,7 +3,7 @@ use std::{
3
ffi::{OsStr, OsString},
4
fs,
5
path::{Path, PathBuf},
6
- process::{self, Command},
+ process::{self, Command, Stdio},
7
};
8
9
use build_plan::BuildPlan;
@@ -23,9 +23,14 @@ pub(crate) fn get_dep_path() -> PathBuf {
23
// an .so file on Linux).
24
let output = Command::new(env!("CARGO"))
25
.args(&["build", "-Z", "unstable-options", "--build-plan"])
26
+ .stderr(Stdio::inherit())
27
.output()
28
.expect("failed to run `cargo build`");
29
30
+ if !output.status.success() {
31
+ panic!("failed to run `cargo build`");
32
+ }
33
+
34
// Parse JSON.
35
let plan = BuildPlan::from_cargo_output(&output.stdout)
36
.expect("unexpected Cargo build-plan output");
0 commit comments