Skip to content

Commit 47347de

Browse files
lf-ehuss
authored andcommitted
Delete redundant broken tests
1 parent c685eb3 commit 47347de

File tree

2 files changed

+0
-50
lines changed

2 files changed

+0
-50
lines changed

tests/testsuite/bad_config.rs

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -87,30 +87,6 @@ Caused by:
8787
.run();
8888
}
8989

90-
#[cargo_test]
91-
fn bad4() {
92-
let p = project()
93-
.file(
94-
".cargo/config",
95-
r#"
96-
[cargo-new]
97-
name = false
98-
"#,
99-
)
100-
.build();
101-
p.cargo("new -v foo")
102-
.with_status(101)
103-
.with_stderr(
104-
"\
105-
[ERROR] Failed to create package `foo` at `[..]`
106-
107-
Caused by:
108-
error in [..]config: `cargo-new.name` expected a string, but found a boolean
109-
",
110-
)
111-
.run();
112-
}
113-
11490
#[cargo_test]
11591
fn bad6() {
11692
let p = project()

tests/testsuite/cargo_command.rs

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -245,32 +245,6 @@ fn displays_subcommand_on_error() {
245245
.run();
246246
}
247247

248-
#[cargo_test]
249-
fn override_cargo_home() {
250-
let root = paths::root();
251-
let my_home = root.join("my_home");
252-
fs::create_dir(&my_home).unwrap();
253-
fs::write(
254-
&my_home.join("config"),
255-
r#"
256-
[cargo-new]
257-
name = "foo"
258-
email = "bar"
259-
git = false
260-
"#,
261-
)
262-
.unwrap();
263-
264-
cargo_process("new foo")
265-
.env("USER", "foo")
266-
.env("CARGO_HOME", &my_home)
267-
.run();
268-
269-
let toml = paths::root().join("foo/Cargo.toml");
270-
let contents = fs::read_to_string(&toml).unwrap();
271-
assert!(contents.contains(r#"authors = ["foo <bar>"]"#));
272-
}
273-
274248
#[cargo_test]
275249
fn cargo_subcommand_env() {
276250
let src = format!(

0 commit comments

Comments
 (0)