Perform lldb DWARF-5 test too (#1609)
* perform lldb DWARF-5 test too * allow test_debug_dwarf5_
This commit is contained in:
@@ -93,6 +93,46 @@ check: exited with status
|
||||
Ok(())
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[ignore]
|
||||
#[cfg(all(
|
||||
any(target_os = "linux", target_os = "macos"),
|
||||
target_pointer_width = "64"
|
||||
))]
|
||||
pub fn test_debug_dwarf5_lldb() -> Result<()> {
|
||||
let output = lldb_with_script(
|
||||
&[
|
||||
"-g",
|
||||
"tests/all/debug/testsuite/fib-wasm-dwarf5.wasm",
|
||||
"--invoke",
|
||||
"fib",
|
||||
"3",
|
||||
],
|
||||
r#"b fib
|
||||
r
|
||||
fr v
|
||||
c"#,
|
||||
)?;
|
||||
|
||||
check_lldb_output(
|
||||
&output,
|
||||
r#"
|
||||
check: Breakpoint 1: no locations (pending)
|
||||
check: Unable to resolve breakpoint to any actual locations.
|
||||
check: 1 location added to breakpoint 1
|
||||
check: stop reason = breakpoint 1.1
|
||||
check: frame #0
|
||||
sameln: JIT
|
||||
sameln: fib(n=3)
|
||||
check: n = 3
|
||||
check: a = 0
|
||||
check: resuming
|
||||
check: exited with status
|
||||
"#,
|
||||
)?;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[ignore]
|
||||
#[cfg(all(
|
||||
|
||||
Reference in New Issue
Block a user