Revert "Work around #5134 for now"
authorXimin Luo <infinity0@pwned.gg>
Thu, 15 Mar 2018 15:17:00 +0000 (16:17 +0100)
committerXimin Luo <infinity0@pwned.gg>
Thu, 15 Mar 2018 16:05:13 +0000 (17:05 +0100)
This reverts commit d46db71b3ff17dfc0f4be6308c8b94613d65a572.

tests/testsuite/build.rs
tests/testsuite/install.rs

index 7cf2e011640c035cb33d6ee3e35683dbe3de4dbe..86a1e58c94ca87d58be04998d44fa1d236e7fbba 100644 (file)
@@ -5426,11 +5426,9 @@ fn avoid_dev_deps() {
         .file("src/main.rs", "fn main() {}")
         .build();
 
-    // --bins is needed because of #5134
-    assert_that(p.cargo("build").arg("--bins"), execs().with_status(101));
+    assert_that(p.cargo("build"), execs().with_status(101));
     assert_that(
         p.cargo("build")
-            .arg("--bins")
             .masquerade_as_nightly_cargo()
             .arg("-Zavoid-dev-deps"),
         execs().with_status(0),
index b3e5c5bf368dbbfbfb1c5b77f6c15ae3a9f44064..5acdb62929ed5453fb1c44174589599fd100b723 100644 (file)
@@ -1222,9 +1222,8 @@ fn dev_dependencies_no_check() {
         .file("src/main.rs", "fn main() {}")
         .build();
 
-    // --bins is needed because of #5134
-    assert_that(p.cargo("build").arg("--bins"), execs().with_status(101));
-    assert_that(p.cargo("install").arg("--bins"), execs().with_status(0));
+    assert_that(p.cargo("build"), execs().with_status(101));
+    assert_that(p.cargo("install"), execs().with_status(0));
 }
 
 #[test]
@@ -1256,10 +1255,9 @@ fn dev_dependencies_lock_file_untouched() {
         .file("a/src/lib.rs", "")
         .build();
 
-    // --bins is needed because of #5134
-    assert_that(p.cargo("build").arg("--bins"), execs().with_status(0));
+    assert_that(p.cargo("build"), execs().with_status(0));
     let lock = p.read_lockfile();
-    assert_that(p.cargo("install").arg("--bins"), execs().with_status(0));
+    assert_that(p.cargo("install"), execs().with_status(0));
     let lock2 = p.read_lockfile();
     assert!(lock == lock2, "different lockfiles");
 }