Skip to content

Commit

Permalink
Only run lint tests on x86_64-unknown-linux-gnu
Browse files Browse the repository at this point in the history
We're trying to test lint behavior, not per-target crate-type support.
  • Loading branch information
jieyouxu committed Mar 3, 2024
1 parent 82ceec9 commit 7ea0f2a
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 5 deletions.
1 change: 1 addition & 0 deletions tests/ui/lint/lint-non-snake-case-crate-bin.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//@ only-x86_64-unknown-linux-gnu
//@ check-pass
#![crate_name = "NonSnakeCase"]

Expand Down
1 change: 1 addition & 0 deletions tests/ui/lint/lint-non-snake-case-crate-bin2.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//@ only-x86_64-unknown-linux-gnu
//@ compile-flags: --crate-name NonSnakeCase
//@ check-pass

Expand Down
1 change: 1 addition & 0 deletions tests/ui/lint/lint-non-snake-case-crate-bin3.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//@ only-x86_64-unknown-linux-gnu
//@ check-pass
#![crate_type = "bin"]
#![crate_name = "NonSnakeCase"]
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/lint/lint-non-snake-case-crate-cdylib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//@ ignore-i686-unknown-linux-musl
//@ only-x86_64-unknown-linux-gnu
#![crate_type = "cdylib"]
#![crate_name = "NonSnakeCase"]
//~^ ERROR crate `NonSnakeCase` should have a snake case name
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/lint/lint-non-snake-case-crate-dylib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//@ ignore-wasm
//@ only-x86_64-unknown-linux-gnu
#![crate_type = "dylib"]
#![crate_name = "NonSnakeCase"]
//~^ ERROR crate `NonSnakeCase` should have a snake case name
Expand Down
1 change: 1 addition & 0 deletions tests/ui/lint/lint-non-snake-case-crate-lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//@ only-x86_64-unknown-linux-gnu
#![crate_type = "lib"]
#![crate_name = "NonSnakeCase"]
//~^ ERROR crate `NonSnakeCase` should have a snake case name
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/lint/lint-non-snake-case-crate-proc-macro.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//@ ignore-wasm
//@ only-x86_64-unknown-linux-gnu
#![crate_type = "proc-macro"]
#![crate_name = "NonSnakeCase"]
//~^ ERROR crate `NonSnakeCase` should have a snake case name
Expand Down
1 change: 1 addition & 0 deletions tests/ui/lint/lint-non-snake-case-crate-rlib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//@ only-x86_64-unknown-linux-gnu
#![crate_type = "rlib"]
#![crate_name = "NonSnakeCase"]
//~^ ERROR crate `NonSnakeCase` should have a snake case name
Expand Down
3 changes: 1 addition & 2 deletions tests/ui/lint/lint-non-snake-case-crate-staticlib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//@ ignore-wasm

//@ only-x86_64-unknown-linux-gnu
#![crate_type = "staticlib"]
#![crate_name = "NonSnakeCase"]
//~^ ERROR crate `NonSnakeCase` should have a snake case name
Expand Down

0 comments on commit 7ea0f2a

Please sign in to comment.