Skip to content

Commit a2e9125

Browse files
[release/7.0-rc1] Disable failing runtime extra platforms tests (#74264)
* Disable tests failing on Android * Disable test failing on iOS and MacCatalyst * Disable failing System.Formats.Tar tests on Android * Fix JIT.Directed aliasing_retbuf test exclusion on Android * Disable failing TraceSource tests on tvOS * Remove unnecessary formatting changes * Fix skipping failing tests on Android * Skip tests failing on tvOS * Revert "Disable failing System.Formats.Tar tests on Android" This reverts commit bfc2958. * Link to specific issues Co-authored-by: Simon Rozsival <[email protected]>
1 parent e897e88 commit a2e9125

File tree

5 files changed

+15
-2
lines changed

5 files changed

+15
-2
lines changed

src/libraries/System.Diagnostics.TraceSource/tests/System.Diagnostics.TraceSource.Config.Tests/TraceSourceWithConfigurationTests.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ private static void CreateAndLoadConfigFile(string filename)
3535

3636
[Fact]
3737
[SkipOnPlatform(TestPlatforms.Browser, "Not supported on Browser")]
38+
[ActiveIssue("https://github.com/dotnet/runtime/issues/74244", TestPlatforms.tvOS)]
3839
public void RuntimeFilterChange()
3940
{
4041
CreateAndLoadConfigFile("testhost_ConfigWithRuntime.config");
@@ -95,6 +96,7 @@ public void RuntimeFilterChange()
9596

9697
[Fact]
9798
[SkipOnPlatform(TestPlatforms.Browser, "Not supported on Browser")]
99+
[ActiveIssue("https://github.com/dotnet/runtime/issues/74244", TestPlatforms.tvOS)]
98100
public void Refresh_RemoveSwitch()
99101
{
100102
// Use a SourceSwitch that logs Error.
@@ -135,6 +137,7 @@ void Log()
135137

136138
[Fact]
137139
[SkipOnPlatform(TestPlatforms.Browser, "Not supported on Browser")]
140+
[ActiveIssue("https://github.com/dotnet/runtime/issues/74244", TestPlatforms.tvOS)]
138141
public void Refresh_ChangeSwitch()
139142
{
140143
// Use a SourceSwitch that logs Error.
@@ -160,6 +163,7 @@ public void Refresh_ChangeSwitch()
160163

161164
[Fact]
162165
[SkipOnPlatform(TestPlatforms.Browser, "Not supported on Browser")]
166+
[ActiveIssue("https://github.com/dotnet/runtime/issues/74244", TestPlatforms.tvOS)]
163167
public void Refresh_RemoveSource()
164168
{
165169
// Use a SourceSwitch that logs Error.
@@ -193,6 +197,7 @@ public void Refresh_RemoveSource()
193197

194198
[Fact]
195199
[SkipOnPlatform(TestPlatforms.Browser, "Not supported on Browser")]
200+
[ActiveIssue("https://github.com/dotnet/runtime/issues/74244", TestPlatforms.tvOS)]
196201
public void ConfigWithEvents_RuntimeListener()
197202
{
198203
CreateAndLoadConfigFile("testhost_ConfigWithRuntime.config");
@@ -259,6 +264,7 @@ private void SubscribeToSwitch_Initializing(object? sender, InitializingSwitchEv
259264

260265
[Fact]
261266
[SkipOnPlatform(TestPlatforms.Browser, "Not supported on Browser")]
267+
[ActiveIssue("https://github.com/dotnet/runtime/issues/74244", TestPlatforms.tvOS)]
262268
public void AllTypes()
263269
{
264270
CreateAndLoadConfigFile("testhost_AllTypes.config");
@@ -303,6 +309,7 @@ public void AllTypes()
303309

304310
[Fact]
305311
[SkipOnPlatform(TestPlatforms.Browser, "Not supported on Browser")]
312+
[ActiveIssue("https://github.com/dotnet/runtime/issues/74244", TestPlatforms.tvOS)]
306313
public void Switch_MissingValue_Throws()
307314
{
308315
Exception e = Assert.Throws<ConfigurationErrorsException>(() =>

src/libraries/System.Net.Http/tests/FunctionalTests/SocketsHttpHandlerTest.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3751,6 +3751,7 @@ public abstract class SocketsHttpHandler_SecurityTest : HttpClientHandlerTestBas
37513751
public SocketsHttpHandler_SecurityTest(ITestOutputHelper output) : base(output) { }
37523752

37533753
[ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsNotWindows7))]
3754+
[SkipOnPlatform(TestPlatforms.Android, "Self-signed certificates are rejected by Android before the .NET validation is reached")]
37543755
public async Task SslOptions_CustomTrust_Ok()
37553756
{
37563757
X509Certificate2Collection caCerts = new X509Certificate2Collection();
@@ -3787,6 +3788,7 @@ await LoopbackServerFactory.CreateClientAndServerAsync(
37873788
}
37883789

37893790
[Fact]
3791+
[SkipOnPlatform(TestPlatforms.Android, "Self-signed certificates are rejected by Android before the .NET validation is reached")]
37903792
public async Task SslOptions_InvalidName_Throws()
37913793
{
37923794
X509Certificate2Collection caCerts = new X509Certificate2Collection();
@@ -3817,6 +3819,7 @@ await LoopbackServerFactory.CreateClientAndServerAsync(
38173819
}
38183820

38193821
[Fact]
3822+
[SkipOnPlatform(TestPlatforms.Android, "Self-signed certificates are rejected by Android before the .NET validation is reached")]
38203823
public async Task SslOptions_CustomPolicy_IgnoresNameMismatch()
38213824
{
38223825
X509Certificate2Collection caCerts = new X509Certificate2Collection();

src/libraries/System.Private.Xml/tests/XmlSerializer/XmlSerializerTests.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,7 @@ public static void Xml_ListRoot()
203203
// horizon that it's not worth the trouble.
204204
#if !XMLSERIALIZERGENERATORTESTS
205205
[Fact]
206+
[ActiveIssue("https://github.com/dotnet/runtime/issues/74247", TestPlatforms.tvOS)]
206207
public static void Xml_ReadOnlyCollection()
207208
{
208209
ReadOnlyCollection<string> roc = new ReadOnlyCollection<string>(new string[] { "one", "two" });
@@ -224,6 +225,7 @@ public static void Xml_ReadOnlyCollection()
224225

225226
[Theory]
226227
[MemberData(nameof(Xml_ImmutableCollections_MemberData))]
228+
[ActiveIssue("https://github.com/dotnet/runtime/issues/74247", TestPlatforms.tvOS)]
227229
public static void Xml_ImmutableCollections(Type type, object collection, Type createException, Type addException, string expectedXml, string exMsg = null)
228230
{
229231
XmlSerializer serializer;

src/libraries/tests.proj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,8 @@
333333
<ProjectExclusions Include="$(MSBuildThisFileDirectory)System.Net.Quic/tests/FunctionalTests/System.Net.Quic.Functional.Tests.csproj" />
334334
<!-- https://github.com/dotnet/runtime/issues/51414 -->
335335
<ProjectExclusions Include="$(MSBuildThisFileDirectory)System.Security.Cryptography.OpenSsl/tests/System.Security.Cryptography.OpenSsl.Tests.csproj" />
336-
336+
<!-- https://github.com/dotnet/runtime/issues/74245 -->
337+
<ProjectExclusions Include="$(RepoRoot)/src/tests/FunctionalTests/iOS/Simulator/XmlSerializer_Deserialize/iOS.Simulator.XmlSerializer_Deserialize.Test.csproj" />
337338
<!-- App Crash https://github.com/dotnet/runtime/issues/53624 -->
338339
<ProjectExclusions Include="$(MSBuildThisFileDirectory)System.Net.Requests/tests/System.Net.Requests.Tests.csproj" />
339340
<ProjectExclusions Include="$(MSBuildThisFileDirectory)System.Net.Security/tests/FunctionalTests/System.Net.Security.Tests.csproj" />

src/tests/issues.targets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3703,7 +3703,7 @@
37033703
<ExcludeList Include = "$(XunitTestBinBase)/JIT/CheckProjects/CheckProjects/**">
37043704
<Issue>needs triage</Issue>
37053705
</ExcludeList>
3706-
<ExcludeList Include="$(XUnitTestBinBase)/JIT/Directed/aliasing_retbuf/*">
3706+
<ExcludeList Include="$(XUnitTestBinBase)/JIT/Directed/aliasing_retbuf/**/*">
37073707
<Issue>https://github.com/dotnet/runtime/issues/73539</Issue>
37083708
</ExcludeList>
37093709
<ExcludeList Include="$(XUnitTestBinBase)/JIT/Directed/callconv/ThisCall/ThisCallTest/*">

0 commit comments

Comments
 (0)