Perform lldb DWARF-5 test too (#1609)

* perform lldb DWARF-5 test too

* allow test_debug_dwarf5_
This commit is contained in:
Gabor Greif
2020-04-28 15:54:44 +02:00
committed by GitHub
parent 4d2670afa3
commit 9d13871bd4
2 changed files with 41 additions and 1 deletions

View File

@@ -230,7 +230,7 @@ jobs:
RUST_BACKTRACE: 1
# 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'
env:
RUST_BACKTRACE: 1

View File

@@ -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(