rust/tests/ui/threads-sendsync/test-tasks-invalid-value.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
251 B
Rust
Raw Normal View History

// This checks that RUST_TEST_THREADS not being 1, 2, ... is detected
// properly.
2020-04-16 15:50:32 +09:00
//@ run-fail
//@ error-pattern:should be a positive integer
//@ compile-flags: --test
//@ exec-env:RUST_TEST_THREADS=foo
//@ needs-threads
#[test]
fn do_nothing() {}