From b377c4bb178cefab1f9dc0b51252809f27eedb23 Mon Sep 17 00:00:00 2001 From: Thom Chiovoloni Date: Mon, 20 Jul 2020 09:38:20 -0700 Subject: [PATCH] Check for `quux` binary in `excluded_default_members_crate_glob` test (review feedback) --- tests/testsuite/workspaces.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/testsuite/workspaces.rs b/tests/testsuite/workspaces.rs index 833da09994d..e620c975d18 100644 --- a/tests/testsuite/workspaces.rs +++ b/tests/testsuite/workspaces.rs @@ -1672,7 +1672,7 @@ fn excluded_default_members_crate_glob() { .file("bar/baz/Cargo.toml", &basic_manifest("baz", "0.1.0")) .file("bar/baz/src/main.rs", "fn main() {}") .file("bar/quux/Cargo.toml", &basic_manifest("quux", "0.1.0")) - .file("bar/quux/src/lib.rs", ""); + .file("bar/quux/src/main.rs", "fn main() {}"); let p = p.build(); p.cargo("build").run(); @@ -1680,10 +1680,12 @@ fn excluded_default_members_crate_glob() { assert!(p.root().join("target").is_dir()); assert!(!p.bin("foo").is_file()); assert!(p.bin("baz").is_file()); + assert!(!p.bin("quux").exists()); p.cargo("build --workspace").run(); assert!(p.root().join("target").is_dir()); assert!(p.bin("foo").is_file()); + assert!(!p.bin("quux").exists()); p.cargo("build").cwd("bar/quux").run(); assert!(p.root().join("bar/quux/target").is_dir());