Skip to content

Commit c939cc1

Browse files
committed
test(lints): Simplify failure tests
1 parent e8af8c7 commit c939cc1

File tree

1 file changed

+2
-20
lines changed

1 file changed

+2
-20
lines changed

tests/testsuite/lints.rs

+2-20
Original file line numberDiff line numberDiff line change
@@ -345,18 +345,9 @@ pub fn foo(num: i32) -> u32 {
345345
foo.cargo("check")
346346
.masquerade_as_nightly_cargo(&["lints"])
347347
.with_status(101)
348-
.with_stderr(
348+
.with_stderr_contains(
349349
"\
350-
[..]
351350
error: usage of an `unsafe` block
352-
[..]
353-
[..]
354-
[..]
355-
[..]
356-
[..]
357-
[..]
358-
[..]
359-
error: could not compile `foo` (lib) due to previous error
360351
",
361352
)
362353
.run();
@@ -395,18 +386,9 @@ pub fn foo(num: i32) -> u32 {
395386
foo.cargo("check")
396387
.masquerade_as_nightly_cargo(&["lints"])
397388
.with_status(101)
398-
.with_stderr(
389+
.with_stderr_contains(
399390
"\
400-
[..]
401391
error: usage of an `unsafe` block
402-
[..]
403-
[..]
404-
[..]
405-
[..]
406-
[..]
407-
[..]
408-
[..]
409-
error: could not compile `foo` (lib) due to previous error
410392
",
411393
)
412394
.run();

0 commit comments

Comments
 (0)