Skip to content

Fix race in TestContextImplementation#6249

Merged
Evangelink merged 2 commits intomainfrom
dev/ygerges/testcontext-race
Jul 30, 2025
Merged

Fix race in TestContextImplementation#6249
Evangelink merged 2 commits intomainfrom
dev/ygerges/testcontext-race

Conversation

@Youssef1313
Copy link
Copy Markdown
Member

@Youssef1313 Youssef1313 commented Jul 30, 2025

Hopefully fixes #6246

Ideally, we should also set a flag in TestContext before we call GetOut or GetError, and have the Console[Out|Error]Router check it before writing. If the flag is true already, write to original console out/err.

@Youssef1313
Copy link
Copy Markdown
Member Author

/backport to rel/3.10

@github-actions
Copy link
Copy Markdown
Contributor

Started backporting to rel/3.10: https://github.com/microsoft/testfx/actions/runs/16621904510

Evangelink
Evangelink previously approved these changes Jul 30, 2025
@Evangelink Evangelink enabled auto-merge (squash) July 30, 2025 12:09
@Youssef1313
Copy link
Copy Markdown
Member Author

/backport to rel/3.10

@github-actions
Copy link
Copy Markdown
Contributor

Started backporting to rel/3.10: https://github.com/microsoft/testfx/actions/runs/16623163261

Youssef1313 added a commit that referenced this pull request Jul 30, 2025
…ort to rel/3.10) (#6250)

Co-authored-by: Youssef1313 <youssefvictor00@gmail.com>
@Evangelink Evangelink merged commit 95aa658 into main Jul 30, 2025
8 checks passed
@Evangelink Evangelink deleted the dev/ygerges/testcontext-race branch July 30, 2025 14:04
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.

An unhandled exception was thrown by the 'Execute' method.

3 participants