Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 6bc037a

Browse files
Completely disable DefaultEncodings test for Unix (conditional compilation not available?)
1 parent 724e21a commit 6bc037a

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/System.Text.Encoding.CodePages/tests/EncodingCodePages.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -453,8 +453,7 @@ private static KeyValuePair<int, string> Map(int codePage, string webName)
453453
}
454454

455455
[Fact]
456-
// Specific asserts which would fail on Unix are conditionally not run.
457-
// [ActiveIssue(846, PlatformID.AnyUnix)]
456+
[ActiveIssue(846, PlatformID.AnyUnix)]
458457
public static void TestDefaultEncodings()
459458
{
460459
ValidateDefaultEncodings();
@@ -508,11 +507,8 @@ private static void ValidateDefaultEncodings()
508507
{
509508
Encoding encoding = Encoding.GetEncoding(mapping.Key);
510509
Assert.NotNull(encoding);
511-
#if !PLATFORM_UNIX
512-
// Currently Unix returns different results depending on how the encoding is requested.
513510
Assert.Equal(encoding, Encoding.GetEncoding(mapping.Value));
514511
Assert.Equal(mapping.Value, encoding.WebName);
515-
#endif
516512
}
517513
}
518514

0 commit comments

Comments
 (0)