Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[corlib] Fixed test that failed intermittently #1114

Closed
wants to merge 1 commit into from

Conversation

akoeplinger
Copy link
Member

There is a race condition in the test, the "#2" Assert() can be reached before e1 is assigned if the thread
that handles e1 gets preempted by the scheduler (this is more likely on single-core systems). Adding a sleep before checking the values fixes this for now.

@marek-safar can you verify this doesn't change the behavior of the test (you added it in b787868)?

There is a race condition in the test, the #2 Assert() can be reached before e1 is assigned if the thread
that handles e1 gets preempted by the scheduler (this is more likely on single-core systems).

Adding a sleep before checking the values fixes this for now.

Commit licensed under MIT/X11.
@marek-safar
Copy link
Member

I don't like unreliable Sleep and fixed the issue differently.

@akoeplinger akoeplinger deleted the fix-lazy-test branch June 23, 2014 12:36
@akoeplinger
Copy link
Member Author

As long as it works I don't care :)

AlexKnauth pushed a commit to AlexKnauth/mono that referenced this pull request Nov 2, 2023
…ditor-support

Incremental gc editor support
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.

None yet

2 participants