MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / guest_debug_cli_fib_step

Function guest_debug_cli_fib_step

tests/all/guest_debug/mod.rs:209–241  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

207#[test]
208#[ignore]
209fn guest_debug_cli_fib_step() -> Result<()> {
210 let port = free_port();
211 let mut wt = WasmtimeWithGdbstub::spawn(
212 "run",
213 port,
214 &["-Ccache=n", GUEST_DEBUG_FIB],
215 Duration::from_secs(30),
216 )?;
217
218 let output = lldb_with_gdbstub_script(
219 port,
220 r#"
221b fib
222c
223n
224n
225n
226fr v
227c
228"#,
229 )?;
230 wt.child.kill().ok();
231 wt.child.wait()?;
232
233 check_output(
234 &output,
235 r#"
236check: stop reason
237check: fib
238"#,
239 )?;
240 Ok(())
241}
242
243/// Helper: send an HTTP/1.0 request and return the full response.
244fn http_request(addr: SocketAddr, path: &str) -> Result<String> {

Callers

nothing calls this directly

Calls 7

free_portFunction · 0.85
spawnFunction · 0.85
lldb_with_gdbstub_scriptFunction · 0.85
check_outputFunction · 0.85
OkFunction · 0.85
okMethod · 0.45
waitMethod · 0.45

Tested by

no test coverage detected