Skip to content

Commit d210644

Browse files
committed
test(toml): Switch from build to check for these bad_config
1 parent 8520ec6 commit d210644

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

tests/testsuite/bad_config.rs

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -833,7 +833,7 @@ fn dev_dependencies2_conflict() {
833833
)
834834
.file("a/src/lib.rs", "")
835835
.build();
836-
p.cargo("build")
836+
p.cargo("check")
837837
.with_stderr_contains(
838838
"[WARNING] conflicting between `dev-dependencies` and `dev_dependencies` in the `foo` package.\n
839839
`dev_dependencies` is ignored and not recommended for use in the future"
@@ -870,7 +870,7 @@ fn build_dependencies2_conflict() {
870870
)
871871
.file("a/src/lib.rs", "")
872872
.build();
873-
p.cargo("build")
873+
p.cargo("check")
874874
.with_stderr_contains(
875875
"[WARNING] conflicting between `build-dependencies` and `build_dependencies` in the `foo` package.\n
876876
`build_dependencies` is ignored and not recommended for use in the future"
@@ -898,7 +898,7 @@ fn lib_crate_type2_conflict() {
898898
)
899899
.file("src/lib.rs", "pub fn foo() {}")
900900
.build();
901-
p.cargo("build")
901+
p.cargo("check")
902902
.with_stderr_contains(
903903
"[WARNING] conflicting between `crate-type` and `crate_type` in the `foo` library target.\n
904904
`crate_type` is ignored and not recommended for use in the future",
@@ -944,7 +944,7 @@ fn examples_crate_type2_conflict() {
944944
"#,
945945
)
946946
.build();
947-
p.cargo("build")
947+
p.cargo("check")
948948
.with_stderr_contains(
949949
"\
950950
[WARNING] conflicting between `crate-type` and `crate_type` in the `ex` example target.\n
@@ -987,14 +987,12 @@ fn cargo_platform_build_dependencies2_conflict() {
987987
.file("build/src/lib.rs", "pub fn build() {}")
988988
.build();
989989

990-
p.cargo("build")
990+
p.cargo("check")
991991
.with_stderr_contains(
992992
format!("[WARNING] conflicting between `build-dependencies` and `build_dependencies` in the `{}` platform target.\n
993993
`build_dependencies` is ignored and not recommended for use in the future", host)
994994
)
995995
.run();
996-
997-
assert!(p.bin("foo").is_file());
998996
}
999997

1000998
#[cargo_test]
@@ -1028,15 +1026,12 @@ fn cargo_platform_dev_dependencies2_conflict() {
10281026
.file("dev/src/lib.rs", "pub fn dev() {}")
10291027
.build();
10301028

1031-
p.cargo("build")
1029+
p.cargo("check")
10321030
.with_stderr_contains(
10331031
format!("[WARNING] conflicting between `dev-dependencies` and `dev_dependencies` in the `{}` platform target.\n
10341032
`dev_dependencies` is ignored and not recommended for use in the future", host)
10351033
)
10361034
.run();
1037-
1038-
assert!(p.bin("foo").is_file());
1039-
p.cargo("test").run();
10401035
}
10411036

10421037
#[cargo_test]

0 commit comments

Comments
 (0)