-
Notifications
You must be signed in to change notification settings - Fork 291
Labels
Area: MSTestIssues with MSTest that are not specific to more refined area (e.g. analyzers or assertions)Issues with MSTest that are not specific to more refined area (e.g. analyzers or assertions)
Description
TraceListenerManager can be created in parallel and in the constructor it's setting the static console TextWriter without any lock. So when for instance one test completes and restores the original TextWriter another concurrent Console.WriteLine will pickup wrong writer invalidating the "capture" semantic.
testfx/src/Adapter/MSTestAdapter.PlatformServices/Services/TraceListenerManager.cs
Lines 42 to 43 in 2614300
| Console.SetOut(outputWriter); | |
| Console.SetError(errorWriter); |
Metadata
Metadata
Assignees
Labels
Area: MSTestIssues with MSTest that are not specific to more refined area (e.g. analyzers or assertions)Issues with MSTest that are not specific to more refined area (e.g. analyzers or assertions)