diff options
| author | Huon Wilson <dbau.pp+github@gmail.com> | 2013-08-29 22:58:27 +1000 |
|---|---|---|
| committer | Huon Wilson <dbau.pp+github@gmail.com> | 2013-08-29 22:58:27 +1000 |
| commit | 4fea236a85b61b52fc3e16348886ff32f5b8210b (patch) | |
| tree | 5eda9806fc616885c116eae7e2553e806b2047e3 | |
| parent | e835c6b042b88720d5fd0d606d25e0ea4fa27b1a (diff) | |
extra: error message should reflact that RUST_TEST_TASKS should be strictly positive (zero is illegal).
| -rw-r--r-- | src/libextra/test.rs | 2 | ||||
| -rw-r--r-- | src/test/run-fail/test-tasks-invalid-value.rs (renamed from src/test/run-fail/test-threads-invalid-value.rs) | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/libextra/test.rs b/src/libextra/test.rs index 82b62c7dfc0..73f6d2e1bda 100644 --- a/src/libextra/test.rs +++ b/src/libextra/test.rs @@ -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 => { diff --git a/src/test/run-fail/test-threads-invalid-value.rs b/src/test/run-fail/test-tasks-invalid-value.rs index 0050d24e1d0..74531deb58e 100644 --- a/src/test/run-fail/test-threads-invalid-value.rs +++ b/src/test/run-fail/test-tasks-invalid-value.rs @@ -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 |
