Skip to content

Commit

Permalink
Auto merge of #6721 - ehuss:doc-test-relax, r=dwijnand
Browse files Browse the repository at this point in the history
Relax some rustdoc tests.

Unblocks rust-lang/rust#56732 which makes a minor change to the output for rustdoc. These tests are being a little overly specific, reduce them to checking just the important part.
  • Loading branch information
bors committed Mar 6, 2019
2 parents 5a6b692 + a7fd667 commit 95b45ec
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions tests/testsuite/doc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1372,7 +1372,7 @@ fn doc_message_format() {

p.cargo("doc --message-format=json")
.with_status(101)
.with_json(
.with_json_contains_unordered(
r#"
{
"message": {
Expand Down Expand Up @@ -1402,10 +1402,7 @@ fn short_message_format() {
p.cargo("doc --message-format=short")
.with_status(101)
.with_stderr_contains(
"\
src/lib.rs:4:6: error: `[bad_link]` cannot be resolved, ignoring it...
error: Could not document `foo`.
",
"src/lib.rs:4:6: error: `[bad_link]` cannot be resolved, ignoring it...",
)
.run();
}

0 comments on commit 95b45ec

Please sign in to comment.