Perform lldb DWARF-5 test too (#1609)
* perform lldb DWARF-5 test too * allow test_debug_dwarf5_
This commit is contained in:
2
.github/workflows/main.yml
vendored
2
.github/workflows/main.yml
vendored
@@ -230,7 +230,7 @@ jobs:
|
|||||||
RUST_BACKTRACE: 1
|
RUST_BACKTRACE: 1
|
||||||
|
|
||||||
# Test debug (DWARF) related functionality.
|
# Test debug (DWARF) related functionality.
|
||||||
- run: cargo test test_debug_dwarf_ -- --ignored --test-threads 1
|
- run: cargo test test_debug_dwarf -- --ignored --test-threads 1
|
||||||
if: matrix.os == 'ubuntu-latest'
|
if: matrix.os == 'ubuntu-latest'
|
||||||
env:
|
env:
|
||||||
RUST_BACKTRACE: 1
|
RUST_BACKTRACE: 1
|
||||||
|
|||||||
@@ -93,6 +93,46 @@ check: exited with status
|
|||||||
Ok(())
|
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]
|
#[test]
|
||||||
#[ignore]
|
#[ignore]
|
||||||
#[cfg(all(
|
#[cfg(all(
|
||||||
|
|||||||
Reference in New Issue
Block a user