We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90574f0 commit 39572e2Copy full SHA for 39572e2
tests/testsuite/build.rs
@@ -4802,6 +4802,24 @@ fn good_cargo_config_jobs() {
4802
p.cargo("build -v").run();
4803
}
4804
4805
+#[cargo_test]
4806
+fn invalid_cargo_config_jobs() {
4807
+ let p = project()
4808
+ .file("src/lib.rs", "")
4809
+ .file(
4810
+ ".cargo/config",
4811
+ r#"
4812
+ [build]
4813
+ jobs = 0
4814
+ "#,
4815
+ )
4816
+ .build();
4817
+ p.cargo("build -v")
4818
+ .with_status(101)
4819
+ .with_stderr_contains("error: jobs may not be 0")
4820
+ .run();
4821
+}
4822
+
4823
#[cargo_test]
4824
fn invalid_jobs() {
4825
let p = project()
0 commit comments