diff options
| author | Steve Klabnik <steve@steveklabnik.com> | 2015-03-19 15:42:53 -0400 |
|---|---|---|
| committer | Steve Klabnik <steve@steveklabnik.com> | 2015-03-19 15:42:56 -0400 |
| commit | 7cbc42849f7586d3c567d7ac8f202839f9b968e8 (patch) | |
| tree | caff4f031cda28010ad2af79f9ac8a96653c712c /src/libtest/lib.rs | |
| parent | 08dd30d9eb685f29b82faae66b5fdb9fc4762a91 (diff) | |
| download | rust-7cbc42849f7586d3c567d7ac8f202839f9b968e8.tar.gz rust-7cbc42849f7586d3c567d7ac8f202839f9b968e8.zip | |
RUST_TEST_TASKS -> RUST_TEST_THREADS
We don't use 'task' anymore, these are now threads. Because this changes the name of a compiler option, this is [breaking-change]
Diffstat (limited to 'src/libtest/lib.rs')
| -rw-r--r-- | src/libtest/lib.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libtest/lib.rs b/src/libtest/lib.rs index 02ddeea46bf..e4ccd49e807 100644 --- a/src/libtest/lib.rs +++ b/src/libtest/lib.rs @@ -338,7 +338,7 @@ The FILTER regex is tested against the name of all tests to run, and only those tests that match are run. By default, all tests are run in parallel. This can be altered with the -RUST_TEST_TASKS environment variable when running tests (set it to 1). +RUST_TEST_THRADS environment variable when running tests (set it to 1). All tests have their standard output and standard error captured by default. This can be overridden with the --nocapture flag or the RUST_TEST_NOCAPTURE=1 @@ -843,12 +843,12 @@ fn run_tests<F>(opts: &TestOpts, fn get_concurrency() -> uint { use std::rt; - match env::var("RUST_TEST_TASKS") { + match env::var("RUST_TEST_THREADS") { Ok(s) => { let opt_n: Option<uint> = s.parse().ok(); match opt_n { Some(n) if n > 0 => n, - _ => panic!("RUST_TEST_TASKS is `{}`, should be a positive integer.", s) + _ => panic!("RUST_TEST_THREADS is `{}`, should be a positive integer.", s) } } Err(..) => { |
