()
| 170 | #[test] |
| 171 | #[ignore] |
| 172 | fn 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#" |
| 186 | b fib |
| 187 | c |
| 188 | fr v |
| 189 | c |
| 190 | "#, |
| 191 | )?; |
| 192 | wt.child.kill().ok(); |
| 193 | wt.child.wait()?; |
| 194 | |
| 195 | check_output( |
| 196 | &output, |
| 197 | r#" |
| 198 | check: stop reason |
| 199 | check: fib |
| 200 | check: n = |
| 201 | "#, |
| 202 | )?; |
| 203 | Ok(()) |
| 204 | } |
| 205 | |
| 206 | /// Test single-stepping within fib. |
| 207 | #[test] |
nothing calls this directly
no test coverage detected