Skip to content

Commit 2e5d4ef

Browse files
authored
Disable tests on CoreCLR using new attribute (#261)
* Disable tests on CoreCLR using new attribute * Address PR Feedback
1 parent cd36f6a commit 2e5d4ef

File tree

19 files changed

+44
-0
lines changed

19 files changed

+44
-0
lines changed

src/libraries/System.ComponentModel.Composition.Registration/tests/System/ComponentModel/Composition/Registration/RegistrationBuilderAttributedOverrideUnitTests.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
namespace System.ComponentModel.Composition.Registration.Tests
1313
{
14+
[SkipOnCoreClr("Test failures on stress tests")]
1415
public class RegistrationBuilderAttributedOverrideUnitTests
1516
{
1617
public interface IContractA { }
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
// See the LICENSE file in the project root for more information.
4+
5+
using Xunit;
6+
7+
[assembly: SkipOnCoreClr("Timeout in stress tests on Linux/arm32", TestPlatforms.Linux)]

src/libraries/System.Data.SqlClient/tests/FunctionalTests/System.Data.SqlClient.Tests.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<Configurations>netcoreapp-Unix-Debug;netcoreapp-Unix-Release;netcoreapp-Windows_NT-Debug;netcoreapp-Windows_NT-Release;netfx-Windows_NT-Debug;netfx-Windows_NT-Release</Configurations>
55
</PropertyGroup>
66
<ItemGroup>
7+
<Compile Include="AssemblyInfo.cs" />
78
<Compile Include="AADAccessTokenTest.cs" />
89
<Compile Include="CloneTests.cs" />
910
<Compile Include="BaseProviderAsyncTest\BaseProviderAsyncTest.cs" />
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
// See the LICENSE file in the project root for more information.
4+
5+
using Xunit;
6+
7+
[assembly: SkipOnCoreClr("Long running tests: https://github.com/dotnet/coreclr/issues/25269", RuntimeStressTestModes.CheckedRuntime)]

src/libraries/System.Linq.Expressions/tests/System.Linq.Expressions.Tests.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
<AssembliesBeingTested Include="Microsoft.CSharp" />
1616
</ItemGroup>
1717
<ItemGroup>
18+
<Compile Include="AssemblyInfo.cs" />
1819
<Compile Include="CompilerTests.cs" />
1920
<Compile Include="Array\ArrayAccessTests.cs" />
2021
<Compile Include="Array\ArrayArrayIndexTests.cs" />
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
// See the LICENSE file in the project root for more information.
4+
5+
using Xunit;
6+
7+
[assembly: SkipOnCoreClr("System.Net.Tests are flaky and/or long running: https://github.com/dotnet/runtime/issues/131")]

src/libraries/System.Net.Http/tests/FunctionalTests/System.Net.Http.Functional.Tests.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@
8585
<Compile Include="$(CommonTestPath)System\Threading\Tasks\TaskTimeoutExtensions.cs">
8686
<Link>Common\System\Threading\Tasks\TaskTimeoutExtensions.cs</Link>
8787
</Compile>
88+
<Compile Include="AssemblyInfo.cs" />
8889
<Compile Include="ByteArrayContentTest.cs" />
8990
<Compile Include="ChannelBindingAwareContent.cs" />
9091
<Compile Include="DribbleStream.cs" />

src/libraries/System.Net.HttpListener/tests/HttpListenerAuthenticationTests.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
namespace System.Net.Tests
1515
{
16+
[SkipOnCoreClr("System.Net.Tests are inestable")]
1617
[ConditionalClass(typeof(PlatformDetection), nameof(PlatformDetection.IsNotWindowsNanoServer))] // httpsys component missing in Nano.
1718
public class HttpListenerAuthenticationTests : IDisposable
1819
{

src/libraries/System.Net.HttpListener/tests/HttpListenerContextTests.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
namespace System.Net.Tests
1616
{
17+
[SkipOnCoreClr("System.Net.Tests are inestable")]
1718
[ConditionalClass(typeof(PlatformDetection), nameof(PlatformDetection.IsNotWindowsNanoServer))] // httpsys component missing in Nano.
1819
public class HttpListenerContextTests : IDisposable
1920
{

src/libraries/System.Net.HttpListener/tests/HttpListenerResponseTests.Cookies.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
namespace System.Net.Tests
1111
{
12+
[SkipOnCoreClr("System.Net.Tests are inestable")]
1213
[ConditionalClass(typeof(PlatformDetection), nameof(PlatformDetection.IsNotWindowsNanoServer))] // httpsys component missing in Nano.
1314
public class HttpListenerResponseCookiesTests : HttpListenerResponseTestBase
1415
{

0 commit comments

Comments
 (0)