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 0b48c00 commit 2d65dcfCopy full SHA for 2d65dcf
src/hyperlight_host/examples/guest-debugging/main.rs
@@ -141,6 +141,18 @@ mod tests {
141
#[cfg(not(mshv2))]
142
let features = "gdb";
143
144
+ // build it before running to avoid a race condition below
145
+ let mut guest_child = Command::new("cargo")
146
+ .arg("build")
147
+ .arg("--example")
148
+ .arg("guest-debugging")
149
+ .arg("--features")
150
+ .arg(features)
151
+ .stdin(Stdio::piped())
152
+ .stdout(Stdio::piped())
153
+ .status()
154
+ .map_err(|e| new_error!("Failed to build guest process: {}", e))?;
155
+
156
let mut guest_child = Command::new("cargo")
157
.arg("run")
158
.arg("--example")
0 commit comments