diff options
Diffstat (limited to 'vendor/supports-color/tests')
-rw-r--r-- | vendor/supports-color/tests/cached.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/vendor/supports-color/tests/cached.rs b/vendor/supports-color/tests/cached.rs new file mode 100644 index 0000000..86d5dfe --- /dev/null +++ b/vendor/supports-color/tests/cached.rs @@ -0,0 +1,12 @@ +#[test] +fn cached_multithreaded() { + (0..12) + .map(|_| { + std::thread::spawn(|| { + for _ in 0..1000 { + supports_color::on_cached(supports_color::Stream::Stdout); + } + }) + }) + .for_each(|thread| thread.join().unwrap()); +} |