Skip to content

Commit

Permalink
More tests for override auto-install
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonSapin committed Oct 16, 2017
1 parent 6824535 commit eae3131
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions tests/cli-v2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,24 @@ fn remove_override_toolchain_err_handling() {
});
}

#[test]
fn file_override_toolchain_err_handling() {
setup(&|config| {
let cwd = config.current_dir();
let toolchain_file = cwd.join("rust-toolchain");
rustup_utils::raw::write_file(&toolchain_file, "beta").unwrap();
expect_stderr_ok(config, &["rustc", "--version"], "info: installing component");
});
}

#[test]
fn plus_override_toolchain_err_handling() {
setup(&|config| {
expect_err(config, &["rustc", "+beta"],
for_host!("toolchain 'beta-{0}' is not installed"));
});
}

#[test]
fn bad_sha_on_manifest() {
setup(&|config| {
Expand Down

0 comments on commit eae3131

Please sign in to comment.