From dde17cf3ee25d3212aae47907ef5e9edc056cd5b Mon Sep 17 00:00:00 2001 From: Erik Kaneda Date: Fri, 3 May 2024 14:24:14 -0700 Subject: [PATCH] zkvm: fix run_tests zkvm is single-threaded, similar to emscripten and wasm. --- library/test/src/lib.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/library/test/src/lib.rs b/library/test/src/lib.rs index bddf75dffbb62..5890b73aabecf 100644 --- a/library/test/src/lib.rs +++ b/library/test/src/lib.rs @@ -594,7 +594,9 @@ pub fn run_test( // If the platform is single-threaded we're just going to run // the test synchronously, regardless of the concurrency // level. - let supports_threads = !cfg!(target_os = "emscripten") && !cfg!(target_family = "wasm"); + let supports_threads = !cfg!(target_os = "emscripten") + && !cfg!(target_family = "wasm") + && !cfg!(target_os = "zkvm"); if supports_threads { let cfg = thread::Builder::new().name(name.as_slice().to_owned()); let mut runtest = Arc::new(Mutex::new(Some(runtest)));