summaryrefslogtreecommitdiffstats
path: root/vendor/rayon-core/tests/init_zero_threads.rs
blob: 3c1ad251c7e02fe232d7742c08aa4ae03f6bbedb (plain)
1
2
3
4
5
6
7
8
9
10
use rayon_core::ThreadPoolBuilder;

#[test]
#[cfg_attr(any(target_os = "emscripten", target_family = "wasm"), ignore)]
fn init_zero_threads() {
    ThreadPoolBuilder::new()
        .num_threads(0)
        .build_global()
        .unwrap();
}