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

Function guest_debug_cli_fib_breakpoint

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

Source from the content-addressed store, hash-verified

170#[test]
171#[ignore]
172fn guest_debug_cli_fib_breakpoint() -> Result<()> {
173 let port = free_port();
174 let mut wt = WasmtimeWithGdbstub::spawn(
175 "run",
176 port,
177 &["-Ccache=n", GUEST_DEBUG_FIB],
178 Duration::from_secs(30),
179 )?;
180
181 // Set breakpoint at the initial stop, *before* continuing.
182 // This tests that modules are visible immediately.
183 let output = lldb_with_gdbstub_script(
184 port,
185 r#"
186b fib
187c
188fr v
189c
190"#,
191 )?;
192 wt.child.kill().ok();
193 wt.child.wait()?;
194
195 check_output(
196 &output,
197 r#"
198check: stop reason
199check: fib
200check: n =
201"#,
202 )?;
203 Ok(())
204}
205
206/// Test single-stepping within fib.
207#[test]

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