Skip to content

Commit

Permalink
test(lints): Simplify failure tests
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed May 22, 2023
1 parent e8af8c7 commit c939cc1
Showing 1 changed file with 2 additions and 20 deletions.
22 changes: 2 additions & 20 deletions tests/testsuite/lints.rs
Original file line number Diff line number Diff line change
Expand Up @@ -345,18 +345,9 @@ pub fn foo(num: i32) -> u32 {
foo.cargo("check")
.masquerade_as_nightly_cargo(&["lints"])
.with_status(101)
.with_stderr(
.with_stderr_contains(
"\
[..]
error: usage of an `unsafe` block
[..]
[..]
[..]
[..]
[..]
[..]
[..]
error: could not compile `foo` (lib) due to previous error
",
)
.run();
Expand Down Expand Up @@ -395,18 +386,9 @@ pub fn foo(num: i32) -> u32 {
foo.cargo("check")
.masquerade_as_nightly_cargo(&["lints"])
.with_status(101)
.with_stderr(
.with_stderr_contains(
"\
[..]
error: usage of an `unsafe` block
[..]
[..]
[..]
[..]
[..]
[..]
[..]
error: could not compile `foo` (lib) due to previous error
",
)
.run();
Expand Down

0 comments on commit c939cc1

Please sign in to comment.