Update tests to check for Checking
authorvarkor <github@varkor.com>
Thu, 19 Apr 2018 18:19:11 +0000 (19:19 +0100)
committervarkor <github@varkor.com>
Thu, 19 Apr 2018 18:19:11 +0000 (19:19 +0100)
tests/testsuite/cargotest/support/mod.rs
tests/testsuite/doc.rs
tests/testsuite/rustdoc.rs

index 9ee70bf7c46681feaee02bdf08a8f5b361a9a96f..65c0f788f114bcbf0013fa2ac59c46296779a261 100644 (file)
@@ -992,6 +992,7 @@ fn substitute_macros(input: &str) -> String {
     let macros = [
         ("[RUNNING]", "     Running"),
         ("[COMPILING]", "   Compiling"),
+        ("[CHECKING]", "    Checking"),
         ("[CREATED]", "     Created"),
         ("[FINISHED]", "    Finished"),
         ("[ERROR]", "error:"),
index 0980042d531c2f85576cb8e8531b13f4ff4b13bf..82638b0408c48d8eb9c8ad84421f07dd2055c8bf 100644 (file)
@@ -217,7 +217,7 @@ fn doc_no_deps() {
         p.cargo("doc").arg("--no-deps"),
         execs().with_status(0).with_stderr(&format!(
             "\
-[COMPILING] bar v0.0.1 ({dir}/bar)
+[CHECKING] bar v0.0.1 ({dir}/bar)
 [DOCUMENTING] foo v0.0.1 ({dir})
 [FINISHED] dev [unoptimized + debuginfo] target(s) in [..]
 ",
@@ -596,7 +596,7 @@ fn doc_lib_bin_same_name_documents_named_bin_when_requested() {
         p.cargo("doc").arg("--bin").arg("foo"),
         execs().with_status(0).with_stderr(&format!(
             "\
-[COMPILING] foo v0.0.1 ({dir})
+[CHECKING] foo v0.0.1 ({dir})
 [DOCUMENTING] foo v0.0.1 ({dir})
 [FINISHED] dev [unoptimized + debuginfo] target(s) in [..]
 ",
@@ -650,7 +650,7 @@ fn doc_lib_bin_same_name_documents_bins_when_requested() {
         p.cargo("doc").arg("--bins"),
         execs().with_status(0).with_stderr(&format!(
             "\
-[COMPILING] foo v0.0.1 ({dir})
+[CHECKING] foo v0.0.1 ({dir})
 [DOCUMENTING] foo v0.0.1 ({dir})
 [FINISHED] dev [unoptimized + debuginfo] target(s) in [..]
 ",
@@ -1270,7 +1270,7 @@ fn doc_all_workspace() {
         execs()
             .with_status(0)
             .with_stderr_contains("[..] Documenting bar v0.1.0 ([..])")
-            .with_stderr_contains("[..] Compiling bar v0.1.0 ([..])")
+            .with_stderr_contains("[..] Checking bar v0.1.0 ([..])")
             .with_stderr_contains("[..] Documenting foo v0.1.0 ([..])"),
     );
 }
index 06e20c20eb3a38f3dd5fe89dc2f0ac69f27c114b..d18df7687ce1a8f80e4911b86b8068e5b65361dd 100644 (file)
@@ -109,7 +109,7 @@ fn rustdoc_foo_with_bar_dependency() {
         foo.cargo("rustdoc").arg("-v").arg("--").arg("--cfg=foo"),
         execs().with_status(0).with_stderr(format!(
             "\
-[COMPILING] bar v0.0.1 ([..])
+[CHECKING] bar v0.0.1 ([..])
 [RUNNING] `rustc [..]bar[/]src[/]lib.rs [..]`
 [DOCUMENTING] foo v0.0.1 ({url})
 [RUNNING] `rustdoc --crate-name foo src[/]lib.rs \