Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

supervacuus
Copy link
Collaborator

With the tsan introduction, we also introduced mutexes into the unit tests to properly synchronize some of the test-runners (e.g., acutest has internals that are not thread-safe, for instance, updating records of check results until the test finishes). Sadly, I forgot to cover dynamic mutexes in the two test modules, which are currently not integrated in CI.

This PR only provides fixes for the failing downstream builds. However, we can restructure the mutex setup to eliminate the need to cover dynamic mutex initialization, thereby avoiding a separate test path for mutex initialization.

Raised here: #1309 (comment)

#skip-changelog

@supervacuus supervacuus assigned vaind and unassigned vaind Aug 11, 2025
@supervacuus supervacuus requested a review from vaind August 11, 2025 12:53
Copy link
Member

@JoshuaMoelans JoshuaMoelans left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Collaborator

@vaind vaind left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Compiles fine in Switch, thanks.

@supervacuus supervacuus changed the title fix: correctly initialize dynamic mutexes in unit-tests fix: correctly apply dynamic mutex initialization in unit-tests Aug 15, 2025
@supervacuus supervacuus merged commit 9be6fe5 into master Aug 15, 2025
41 checks passed
@supervacuus supervacuus deleted the fix/unit-test_dynamic_mutex_init branch August 15, 2025 12:34
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.

3 participants