]> git.proxmox.com Git - rustc.git/blame - src/tools/cargo/tests/testsuite/init/bin_already_exists_implicit_namenosrc/mod.rs
New upstream version 1.72.1+dfsg1
[rustc.git] / src / tools / cargo / tests / testsuite / init / bin_already_exists_implicit_namenosrc / mod.rs
CommitLineData
0a29b90c
FG
1use cargo_test_support::compare::assert_ui;
2use cargo_test_support::prelude::*;
3use cargo_test_support::Project;
4
5use cargo_test_support::curr_dir;
6
7#[cargo_test]
8fn case() {
9 let project = Project::from_template(curr_dir!().join("in"));
10 let project_root = &project.root();
11
12 snapbox::cmd::Command::cargo_ui()
13 .arg_line("init --vcs none")
14 .current_dir(project_root)
15 .assert()
16 .success()
17 .stdout_matches_path(curr_dir!().join("stdout.log"))
18 .stderr_matches_path(curr_dir!().join("stderr.log"));
19
20 assert_ui().subset_matches(curr_dir!().join("out"), project_root);
21 assert!(!project_root.join("src").is_dir());
22}