]> git.proxmox.com Git - cargo.git/commitdiff
Maybe fix failing build on OS X rust beta
authorMikkel Kroman <mk@uplink.io>
Tue, 17 May 2016 02:50:41 +0000 (04:50 +0200)
committerMikkel Kroman <mk@uplink.io>
Tue, 17 May 2016 02:50:41 +0000 (04:50 +0200)
tests/test_cargo_test.rs

index cf6f50e8d45df1c24f0115aa24eaaa04cf2499ca..0eb12d49460c86c186327457b861376a6a0819cb 100644 (file)
@@ -2048,10 +2048,10 @@ test!(selective_test_optional_dep {
 });
 
 test!(only_test_docs {
-    let p = project("foo")
+    let p = project("foo_docs")
         .file("Cargo.toml", r#"
             [package]
-            name = "foo"
+            name = "foo_docs"
             version = "0.0.1"
             authors = []
         "#)
@@ -2067,13 +2067,13 @@ test!(only_test_docs {
             pub fn bar() {
             }
         "#)
-        .file("tests/foo.rs", "this is not rust");
+        .file("tests/foo_docs.rs", "this is not rust");
     p.build();
 
     assert_that(p.cargo("test").arg("--doc"),
                 execs().with_status(0).with_stdout(&format!("\
-[COMPILING] foo v0.0.1 ([..])
-[DOCTEST] foo
+[COMPILING] foo_docs v0.0.1 ([..])
+[DOCTEST] foo_docs
 
 running 1 test
 test bar_0 ... ok