We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 158c55b commit 8356e44Copy full SHA for 8356e44
src/hyperlight_host/examples/guest-debugging/main.rs
@@ -151,6 +151,18 @@ mod tests {
151
#[cfg(not(mshv2))]
152
let features = "gdb";
153
154
+ // build it before running to avoid a race condition below
155
+ let mut guest_child = Command::new("cargo")
156
+ .arg("build")
157
+ .arg("--example")
158
+ .arg("guest-debugging")
159
+ .arg("--features")
160
+ .arg(features)
161
+ .stdin(Stdio::piped())
162
+ .stdout(Stdio::piped())
163
+ .status()
164
+ .map_err(|e| new_error!("Failed to build guest process: {}", e))?;
165
+
166
let mut guest_child = Command::new("cargo")
167
.arg("run")
168
.arg("--example")
0 commit comments