Skip to content

Commit 934aa7d

Browse files
authored
re-enable and fix the SetOutReadToEnd test (#62200)
1 parent 09cd9c2 commit 934aa7d

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/libraries/System.Console/tests/SetOut.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
using System.IO;
66
using Xunit;
77

8+
[Collection(nameof(DisableParallelization))] // Console.Out is a static singleton, other tests should not be using it at the same time
89
public class SetOut
910
{
1011
[Fact]
@@ -28,7 +29,6 @@ public static void SetOutReadLine()
2829
}
2930

3031
[Fact]
31-
[ActiveIssue("https://github.com/dotnet/runtime/issues/57935", TestPlatforms.AnyUnix)]
3232
public static void SetOutReadToEnd()
3333
{
3434
Helpers.SetAndReadHelper(tw => Console.SetOut(tw), () => Console.Out, sr => sr.ReadToEnd());

src/libraries/System.Console/tests/System.Console.Tests.csproj

+2
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@
2828
Link="Common\System\IO\InterceptStreamWriter.cs" />
2929
<Compile Include="$(CommonTestPath)System\ShouldNotBeInvokedException.cs"
3030
Link="Common\System\ShouldNotBeInvokedException.cs" />
31+
<Compile Include="$(CommonTestPath)TestUtilities\System\DisableParallelization.cs"
32+
Link="Common\TestUtilities\System\DisableParallelization.cs" />
3133
<Compile Include="WindowAndCursorProps.cs" />
3234
</ItemGroup>
3335
<ItemGroup>

0 commit comments

Comments
 (0)