summaryrefslogtreecommitdiffstats
path: root/src/tools/cargo/tests/testsuite/doc.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/cargo/tests/testsuite/doc.rs')
-rw-r--r--src/tools/cargo/tests/testsuite/doc.rs19
1 files changed, 16 insertions, 3 deletions
diff --git a/src/tools/cargo/tests/testsuite/doc.rs b/src/tools/cargo/tests/testsuite/doc.rs
index 65169d214..37dd47d76 100644
--- a/src/tools/cargo/tests/testsuite/doc.rs
+++ b/src/tools/cargo/tests/testsuite/doc.rs
@@ -75,7 +75,14 @@ fn doc_twice() {
)
.run();
- p.cargo("doc").with_stdout("").run();
+ p.cargo("doc")
+ .with_stderr(
+ "\
+[FINISHED] [..]
+[GENERATED] [CWD]/target/doc/foo/index.html
+",
+ )
+ .run();
}
#[cargo_test]
@@ -118,9 +125,14 @@ fn doc_deps() {
assert_eq!(p.glob("target/debug/**/*.rlib").count(), 0);
assert_eq!(p.glob("target/debug/deps/libbar-*.rmeta").count(), 1);
+ // Make sure it doesn't recompile.
p.cargo("doc")
- .env("CARGO_LOG", "cargo::ops::cargo_rustc::fingerprint")
- .with_stdout("")
+ .with_stderr(
+ "\
+[FINISHED] [..]
+[GENERATED] [CWD]/target/doc/foo/index.html
+",
+ )
.run();
assert!(p.root().join("target/doc").is_dir());
@@ -1686,6 +1698,7 @@ fn doc_message_format() {
r#"
{
"message": {
+ "$message_type": "diagnostic",
"children": "{...}",
"code": "{...}",
"level": "error",