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

Commit eb639ef

Browse files
committed
Disable some tests on Unix
These are tests we expect to fail because of known debt in Globalization and Crypto cross platform but were not previously marked because tests were not running in CI.
1 parent bab9dd1 commit eb639ef

File tree

7 files changed

+251
-0
lines changed

7 files changed

+251
-0
lines changed

src/System.Globalization.Extensions/tests/IdnMapping/IdnMappingThrows.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ public static void GetAsciiThrows()
2222
}
2323

2424
[Fact]
25+
[ActiveIssue(810, PlatformID.AnyUnix)]
2526
public static void GetUnicodeThrows()
2627
{
2728
IdnMapping idnMapping = new IdnMapping();

src/System.Security.Cryptography.Encoding/tests/Oid.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ public static void TestFriendlyNameProperty()
118118
}
119119

120120
[Fact]
121+
[ActiveIssue(1863, PlatformID.AnyUnix)]
121122
public static void TestFromFriendlyName()
122123
{
123124
Oid oid;
@@ -138,6 +139,7 @@ public static void TestFromFriendlyName()
138139
}
139140

140141
[Fact]
142+
[ActiveIssue(1863, PlatformID.AnyUnix)]
141143
public static void TestFromOidValue()
142144
{
143145
Oid oid;
@@ -158,6 +160,7 @@ public static void TestFromOidValue()
158160
}
159161

160162
[Fact]
163+
[ActiveIssue(1863, PlatformID.AnyUnix)]
161164
public static void TestKnownValues()
162165
{
163166
Oid oid;

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ public class EncodingTest
1717
private static byte[] s_UTF8BEBom = new byte[] { 0xFE, 0xFF };
1818

1919
[Fact]
20+
[ActiveIssue(846, PlatformID.AnyUnix)]
2021
public static void TestGetEncoding()
2122
{
2223
Encoding encoding = Encoding.GetEncoding("UTF-32LE");
@@ -129,6 +130,7 @@ public CodePageMapping(string name, int codepage)
129130
};
130131

131132
[Fact]
133+
[ActiveIssue(846, PlatformID.AnyUnix)]
132134
public static void TestEncodingNameAndCopdepageNumber()
133135
{
134136
foreach (var map in s_mapping)
@@ -177,6 +179,7 @@ public static void TestEncodingDisplayNames()
177179
}
178180

179181
[Fact]
182+
[ActiveIssue(846, PlatformID.AnyUnix)]
180183
public static void TestCodePageToWebNameMappings()
181184
{
182185
foreach (var mapping in s_codePageToWebNameMappings)

src/System.Text.Encoding/tests/Encoding/EncodingGetChars1.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,30 +215,35 @@ public void PosTest34()
215215
}
216216

217217
[Fact]
218+
[ActiveIssue(846, PlatformID.AnyUnix)]
218219
public void PosTest35()
219220
{
220221
PositiveTestString(Encoding.GetEncoding("UTF-16BE"), "TestTest\uFFFD", new byte[] { 0, 84, 0, 101, 0, 115, 0, 116, 0, 84, 0, 101, 0, 115, 0, 116, 216, 3 }, "00I4");
221222
}
222223

223224
[Fact]
225+
[ActiveIssue(846, PlatformID.AnyUnix)]
224226
public void PosTest36()
225227
{
226228
PositiveTestString(Encoding.GetEncoding("UTF-16BE"), "\uFFFD\uFFFD", new byte[] { 216, 3, 48 }, "00J4");
227229
}
228230

229231
[Fact]
232+
[ActiveIssue(846, PlatformID.AnyUnix)]
230233
public void PosTest37()
231234
{
232235
PositiveTestString(Encoding.GetEncoding("UTF-16BE"), "\uD803\uDD75\uD803\uDD75\uD803\uDD75", new byte[] { 216, 3, 221, 117, 216, 3, 221, 117, 216, 3, 221, 117 }, "00K4");
233236
}
234237

235238
[Fact]
239+
[ActiveIssue(846, PlatformID.AnyUnix)]
236240
public void PosTest38()
237241
{
238242
PositiveTestString(Encoding.GetEncoding("UTF-16BE"), "\u0130", new byte[] { 1, 48 }, "00L4");
239243
}
240244

241245
[Fact]
246+
[ActiveIssue(846, PlatformID.AnyUnix)]
242247
public void PosTest39()
243248
{
244249
PositiveTestString(Encoding.GetEncoding("UTF-16BE"), "\uD803\uDD75\uD803\uDD75", new byte[] { 216, 3, 221, 117, 216, 3, 221, 117 }, "0A24");

src/System.Text.Encoding/tests/Encoding/EncodingGetEncoding2.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ public void PosTest1()
2121

2222
// PosTest2: Get Encoding with the defined name 4
2323
[Fact]
24+
[ActiveIssue(846, PlatformID.AnyUnix)]
2425
public void PosTest2()
2526
{
2627
string name = "Unicode";
@@ -32,6 +33,7 @@ public void PosTest2()
3233
#region NegativeTest
3334
// NegTest1: the name is not valid codepage name
3435
[Fact]
36+
[ActiveIssue(846, PlatformID.AnyUnix)]
3537
public void NegTest1()
3638
{
3739
string name = null;
@@ -43,6 +45,7 @@ public void NegTest1()
4345

4446
// NegTest2: The platform do not support the named codepage
4547
[Fact]
48+
[ActiveIssue(846, PlatformID.AnyUnix)]
4649
public void NegTest2()
4750
{
4851
string name = "helloworld";

src/System.Text.Encoding/tests/project.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"xunit.abstractions.netcore": "1.0.0-prerelease",
1212
"xunit.assert": "2.0.0-beta5-build2785",
1313
"xunit.core.netcore": "1.0.1-prerelease",
14+
"xunit.netcore.extensions": "1.0.0-prerelease-*",
1415
"xunit.runner.visualstudio": "0.99.9-build1021"
1516
},
1617
"frameworks": {

0 commit comments

Comments
 (0)