Skip to content

Commit

Permalink
Relax some rustdoc tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
ehuss committed Mar 6, 2019
1 parent 5a6b692 commit a7fd667
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 a7fd667

Please sign in to comment.