Skip to content

Commit 4002368

Browse files
author
Erik Kaneda
committed
zkvm: fix run_tests
zkvm is single-threaded, similar to emscripten and wasm.
1 parent e0764a9 commit 4002368

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/test/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,7 @@ pub fn run_test(
587587
// If the platform is single-threaded we're just going to run
588588
// the test synchronously, regardless of the concurrency
589589
// level.
590-
let supports_threads = !cfg!(target_os = "emscripten") && !cfg!(target_family = "wasm");
590+
let supports_threads = !cfg!(target_os = "emscripten") && !cfg!(target_family = "wasm") && !cfg!(target_os = "zkvm");
591591
if supports_threads {
592592
let cfg = thread::Builder::new().name(name.as_slice().to_owned());
593593
let mut runtest = Arc::new(Mutex::new(Some(runtest)));

0 commit comments

Comments
 (0)