From 0a9055b40dc315420ab91d080e16cc5ec8ca4b4f Mon Sep 17 00:00:00 2001 From: Vladislav Kuzmin <67874880+principalwater@users.noreply.github.com> Date: Sat, 28 Nov 2026 00:32:15 +0300 Subject: [PATCH] test(clipboard): serialize Windows clipboard fixtures in Nextest (#6574) Nextest runs each test in its own process, so the per-process SERIAL mutex of the three Windows clipboard tests from #6549 did not keep them from writing the system clipboard at the same time. A Nextest test group with one slot runs them in turn while other tests stay parallel. Closes #6571 Co-authored-by: principalwater <67874880+principalwater@users.noreply.github.com> --- .config/nextest.toml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .config/nextest.toml diff --git a/.config/nextest.toml b/.config/nextest.toml new file mode 100644 index 000000000..e34e99b8e --- /dev/null +++ b/.config/nextest.toml @@ -0,0 +1,13 @@ +# Nextest runs tests in separate processes. These three tests write the same Windows clipboard. +[test-groups.windows-clipboard] +max-threads = 1 + +[[profile.default.overrides]] +filter = ''' +package(=ide-clipboard) & ( + test(=tests::text_reads_on_one_thread_do_not_corrupt_the_heap) + | test(=tests::text_reads_taking_turns_do_not_corrupt_the_heap) + | test(=tests::concurrent_text_reads_do_not_corrupt_the_heap) +) +''' +test-group = "windows-clipboard"