Skip to content

Commit

Permalink
Check for quux binary in excluded_default_members_crate_glob test…
Browse files Browse the repository at this point in the history
… (review feedback)
  • Loading branch information
thomcc committed Jul 20, 2020
1 parent b70a596 commit b377c4b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/testsuite/workspaces.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1672,18 +1672,20 @@ 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();

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());
Expand Down

0 comments on commit b377c4b

Please sign in to comment.