diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c954cf6595..936fd61788 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -295,8 +295,8 @@ jobs: # Test debug (DWARF) related functionality on new backend. - run: | sudo apt-get update && sudo apt-get install -y gdb - cargo test --features experimental_x64 test_debug_dwarf -- --ignored --test-threads 1 - if: matrix.target == 'x86_64-unknown-linux-gnu' + cargo test --features experimental_x64 test_debug_dwarf -- --ignored --test-threads 1 --test debug:: + if: matrix.os == 'ubuntu-latest' env: RUST_BACKTRACE: 1 diff --git a/tests/all/debug/lldb.rs b/tests/all/debug/lldb.rs index c29e757b31..7807732700 100644 --- a/tests/all/debug/lldb.rs +++ b/tests/all/debug/lldb.rs @@ -137,7 +137,11 @@ check: exited with status #[ignore] #[cfg(all( any(target_os = "linux", target_os = "macos"), - target_pointer_width = "64" + target_pointer_width = "64", + // Ignore test on new backend. The value this is looking for is + // not available at the point that the breakpoint is set when + // compiled by the new backend. + not(feature = "experimental_x64"), ))] pub fn test_debug_dwarf_ptr() -> Result<()> { let output = lldb_with_script( diff --git a/tests/all/debug/translate.rs b/tests/all/debug/translate.rs index e8ceb7bd9e..7253989d57 100644 --- a/tests/all/debug/translate.rs +++ b/tests/all/debug/translate.rs @@ -114,7 +114,11 @@ check: DW_AT_decl_line (10) #[cfg(all( any(target_os = "linux", target_os = "macos"), target_arch = "x86_64", - target_pointer_width = "64" + target_pointer_width = "64", + // Ignore test on new backend. This is a specific test with hardcoded + // offsets and the new backend compiles the return basic-block at a different + // offset, causing mismatches. + not(feature = "experimental_x64"), ))] fn test_debug_dwarf5_translate_lines() -> Result<()> { check_line_program(