extra: error message should reflact that RUST_TEST_TASKS should be strictly positive (zero is illegal).

This commit is contained in:
Huon Wilson 2013-08-29 22:58:27 +10:00
parent e835c6b042
commit 4fea236a85
2 changed files with 2 additions and 2 deletions
src

@ -745,7 +745,7 @@ fn get_concurrency() -> uint {
let opt_n: Option<uint> = FromStr::from_str(s);
match opt_n {
Some(n) if n > 0 => n,
_ => fail!("RUST_TEST_TASKS is `%s`, should be a non-negative integer.", s)
_ => fail!("RUST_TEST_TASKS is `%s`, should be a positive integer.", s)
}
}
None => {

@ -11,7 +11,7 @@
// This checks that RUST_TEST_TASKS not being 1, 2, ... is detected
// properly.
// error-pattern:should be a non-negative integer
// error-pattern:should be a positive integer
// compile-flags: --test
// exec-env:RUST_TEST_TASKS=foo