Skip to content

fix(tests): refactor unit test addition to avoid race conditions in parallel execution - #25

Merged
zombocoder merged 1 commit into
mainfrom
fix/unit-tests-parallel-race
Oct 24, 2026
Merged

zombocoder merged 1 commit into
mainfrom
fix/unit-tests-parallel-race

Conversation

@zombocoder

Copy link
Copy Markdown
Owner

This pull request updates the way unit tests are defined and run in the CMake configuration for tests/unit. The main improvement is that each test now runs in its own dedicated directory, which prevents file conflicts when tests are executed in parallel.

Unit test infrastructure improvements:

  • Introduced a new CMake function bfc_add_unit_test that creates a unique working directory for each test, ensuring that parallel test runs do not interfere with each other's files.
  • Replaced all add_test calls with bfc_add_unit_test to apply this isolation to all unit tests.

@zombocoder
zombocoder merged commit 91e5cb0 into main Oct 24, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant