diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 17eac14289..428c3b910e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 diff --git a/tests/all/debug/lldb.rs b/tests/all/debug/lldb.rs index eb444a1454..6677acfb44 100644 --- a/tests/all/debug/lldb.rs +++ b/tests/all/debug/lldb.rs @@ -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(