1
0
Fork 0
forked from wry/wry

all: set rust edition to 2024

This commit is contained in:
Julian Orth 2025-02-21 10:44:29 +01:00
parent 02a18f620b
commit 3338909170
515 changed files with 1225 additions and 1187 deletions

View file

@ -3,7 +3,7 @@ use {
async_engine::Phase,
it::{
test_backend::TestBackend,
test_config::{with_test_config, TestConfig},
test_config::{TestConfig, with_test_config},
testrun::TestRun,
tests::TestCase,
},
@ -75,14 +75,16 @@ fn run_tests_(tests: Vec<&'static dyn TestCase>) {
for _ in 0..num_cpus {
let queue = queue.clone();
let it_run = it_run.clone();
threads.push(std::thread::spawn(move || loop {
let test = match queue.lock().pop_front() {
Some(t) => t,
_ => break,
};
with_test_config(|cfg| {
run_test(&it_run, test, cfg);
})
threads.push(std::thread::spawn(move || {
loop {
let test = match queue.lock().pop_front() {
Some(t) => t,
_ => break,
};
with_test_config(|cfg| {
run_test(&it_run, test, cfg);
})
}
}));
}
for thread in threads {