diff --git a/turbopack/crates/turbo-tasks-macros-tests/tests/trybuild.rs b/turbopack/crates/turbo-tasks-macros-tests/tests/trybuild.rs index d1dbc7db51f8..314299db6f6a 100644 --- a/turbopack/crates/turbo-tasks-macros-tests/tests/trybuild.rs +++ b/turbopack/crates/turbo-tasks-macros-tests/tests/trybuild.rs @@ -8,37 +8,19 @@ fn unset_rustc_wrapper() { unsafe { std::env::remove_var("RUSTC_WRAPPER") }; } +// Trybuild uses one generated Cargo project per package. Keep every case in one test so nextest +// cannot run separate processes that overwrite that project's manifest while another case uses it. #[test] -fn derive_operation_value() { +fn trybuild() { let t = trybuild::TestCases::new(); t.pass("tests/derive_operation_value/pass_*.rs"); t.compile_fail("tests/derive_operation_value/fail_*.rs"); -} - -#[test] -fn derive_non_local_value() { - let t = trybuild::TestCases::new(); t.pass("tests/derive_non_local_value/pass_*.rs"); t.compile_fail("tests/derive_non_local_value/fail_*.rs"); -} - -#[test] -fn function() { - let t = trybuild::TestCases::new(); t.pass("tests/function/pass_*.rs"); t.compile_fail("tests/function/fail_*.rs"); -} - -#[test] -fn value() { - let t = trybuild::TestCases::new(); t.pass("tests/value/pass_*.rs"); t.compile_fail("tests/value/fail_*.rs"); -} - -#[test] -fn value_trait() { - let t = trybuild::TestCases::new(); t.pass("tests/value_trait/pass_*.rs"); t.compile_fail("tests/value_trait/fail_*.rs"); }