Skip to content

Commit

Permalink
rename rust-lldb to needs-rust-lldb for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
pietroalbini committed Apr 14, 2023
1 parent aea4367 commit ffe4ccd
Show file tree
Hide file tree
Showing 11 changed files with 15 additions and 18 deletions.
8 changes: 0 additions & 8 deletions src/tools/compiletest/src/header.rs
Original file line number Diff line number Diff line change
Expand Up @@ -943,14 +943,6 @@ pub fn make_test_description<R: Read>(
}
}

if config.debugger == Some(Debugger::Lldb) && !config.lldb_native_rust {
if config.parse_name_directive(ln, "rust-lldb") {
decision!(IgnoreDecision::Ignore {
reason: "ignored on targets wihtout Rust's LLDB".into()
});
}
}

should_fail |= config.parse_name_directive(ln, "should-fail");
});

Expand Down
7 changes: 6 additions & 1 deletion src/tools/compiletest/src/header/needs.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use crate::common::Config;
use crate::common::{Config, Debugger};
use crate::header::IgnoreDecision;
use crate::util;

Expand Down Expand Up @@ -100,6 +100,11 @@ pub(super) fn handle_needs(
condition: cache.rust_lld,
ignore_reason: "ignored on targets without Rust's LLD",
},
Need {
name: "needs-rust-lldb",
condition: config.debugger != Some(Debugger::Lldb) || config.lldb_native_rust,
ignore_reason: "ignored on targets without Rust's LLDB",
},
Need {
name: "needs-i686-dlltool",
condition: cache.i686_dlltool,
Expand Down
2 changes: 1 addition & 1 deletion tests/debuginfo/associated-types.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Some versions of the non-rust-enabled LLDB print the wrong generic
// parameter type names in this test.
// rust-lldb
// needs-rust-lldb

// compile-flags:-g

Expand Down
2 changes: 1 addition & 1 deletion tests/debuginfo/borrowed-enum.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Require a gdb or lldb that can read DW_TAG_variant_part.
// min-gdb-version: 8.2
// rust-lldb
// needs-rust-lldb

// compile-flags:-g

Expand Down
2 changes: 1 addition & 1 deletion tests/debuginfo/generic-method-on-generic-struct.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

// Some versions of the non-rust-enabled LLDB print the wrong generic
// parameter type names in this test.
// rust-lldb
// needs-rust-lldb

// === GDB TESTS ===================================================================================

Expand Down
2 changes: 1 addition & 1 deletion tests/debuginfo/generic-struct.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Some versions of the non-rust-enabled LLDB print the wrong generic
// parameter type names in this test.
// rust-lldb
// needs-rust-lldb

// compile-flags:-g

Expand Down
2 changes: 1 addition & 1 deletion tests/debuginfo/generic-tuple-style-enum.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Require a gdb or lldb that can read DW_TAG_variant_part.
// min-gdb-version: 8.2
// rust-lldb
// needs-rust-lldb

// compile-flags:-g

Expand Down
2 changes: 1 addition & 1 deletion tests/debuginfo/method-on-generic-struct.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Some versions of the non-rust-enabled LLDB print the wrong generic
// parameter type names in this test.
// rust-lldb
// needs-rust-lldb

// compile-flags:-g

Expand Down
2 changes: 1 addition & 1 deletion tests/debuginfo/struct-style-enum.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Require a gdb or lldb that can read DW_TAG_variant_part.
// min-gdb-version: 8.2
// rust-lldb
// needs-rust-lldb

// compile-flags:-g

Expand Down
2 changes: 1 addition & 1 deletion tests/debuginfo/tuple-style-enum.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Require a gdb or lldb that can read DW_TAG_variant_part.
// min-gdb-version: 8.2
// rust-lldb
// needs-rust-lldb

// compile-flags:-g

Expand Down
2 changes: 1 addition & 1 deletion tests/debuginfo/unique-enum.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Require a gdb or lldb that can read DW_TAG_variant_part.
// min-gdb-version: 8.2
// rust-lldb
// needs-rust-lldb

// compile-flags:-g

Expand Down

0 comments on commit ffe4ccd

Please sign in to comment.