Skip to content

Commit ec22f2d

Browse files
committed
Disable failing System.Numerics.Tensors tests
dotnet#97297 dotnet#97295 dotnet#97296 Caused by dotnet#97192
1 parent 440632c commit ec22f2d

File tree

4 files changed

+10
-0
lines changed

4 files changed

+10
-0
lines changed

src/libraries/Common/tests/TestUtilities/System/PlatformDetection.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ public static partial class PlatformDetection
3030
public static bool IsMonoRuntime => Type.GetType("Mono.RuntimeStructs") != null;
3131
public static bool IsNotMonoRuntime => !IsMonoRuntime;
3232
public static bool IsMonoInterpreter => GetIsRunningOnMonoInterpreter();
33+
public static bool IsNotMonoInterpreter => !IsMonoInterpreter;
3334
public static bool IsMonoAOT => Environment.GetEnvironmentVariable("MONO_AOT_MODE") == "aot";
3435
public static bool IsNotMonoAOT => Environment.GetEnvironmentVariable("MONO_AOT_MODE") != "aot";
3536
public static bool IsNativeAot => IsNotMonoRuntime && !IsReflectionEmitSupported;

src/libraries/System.Numerics.Tensors/tests/TensorPrimitives.Generic.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ public static IEnumerable<object[]> SpanDestinationFunctionsToTest()
174174

175175
[Theory]
176176
[MemberData(nameof(SpanDestinationFunctionsToTest))]
177+
[ActiveIssue("https://github.com/dotnet/runtime/issues/97297")]
177178
public void SpanDestinationFunctions_AllLengths(SpanDestinationDelegate tensorPrimitivesMethod, Func<T, T> expectedMethod)
178179
{
179180
Assert.All(Helpers.TensorLengthsIncluding0, tensorLength =>
@@ -192,6 +193,7 @@ public void SpanDestinationFunctions_AllLengths(SpanDestinationDelegate tensorPr
192193

193194
[Theory]
194195
[MemberData(nameof(SpanDestinationFunctionsToTest))]
196+
[ActiveIssue("https://github.com/dotnet/runtime/issues/97297")]
195197
public void SpanDestinationFunctions_InPlace(SpanDestinationDelegate tensorPrimitivesMethod, Func<T, T> expectedMethod)
196198
{
197199
Assert.All(Helpers.TensorLengthsIncluding0, tensorLength =>
@@ -210,6 +212,7 @@ public void SpanDestinationFunctions_InPlace(SpanDestinationDelegate tensorPrimi
210212

211213
[Theory]
212214
[MemberData(nameof(SpanDestinationFunctionsToTest))]
215+
[ActiveIssue("https://github.com/dotnet/runtime/issues/97297")]
213216
public void SpanDestinationFunctions_SpecialValues(SpanDestinationDelegate tensorPrimitivesMethod, Func<T, T> expectedMethod)
214217
{
215218
Assert.All(Helpers.TensorLengths, tensorLength =>
@@ -230,6 +233,7 @@ public void SpanDestinationFunctions_SpecialValues(SpanDestinationDelegate tenso
230233

231234
[Theory]
232235
[MemberData(nameof(SpanDestinationFunctionsToTest))]
236+
[ActiveIssue("https://github.com/dotnet/runtime/issues/97297")]
233237
public void SpanDestinationFunctions_ValueRange(SpanDestinationDelegate tensorPrimitivesMethod, Func<T, T> expectedMethod)
234238
{
235239
Assert.All(VectorLengthAndIteratedRange(ConvertFromSingle(-100f), ConvertFromSingle(100f), ConvertFromSingle(3f)), arg =>

src/libraries/System.Numerics.Tensors/tests/TensorPrimitivesTests.cs

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

1212
namespace System.Numerics.Tensors.Tests
1313
{
14+
[ActiveIssue("https://github.com/dotnet/runtime/issues/97295", typeof(PlatformDetection), nameof(PlatformDetection.IsMonoRuntime), nameof(PlatformDetection.IsNotMonoInterpreter))]
1415
public abstract class TensorPrimitivesTests<T> where T : unmanaged, IEquatable<T>
1516
{
1617
#region Abstract Methods Under Test

src/libraries/tests.proj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,10 @@
148148
<ProjectExclusions Include="$(MSBuildThisFileDirectory)System.Runtime.InteropServices\tests\ComInterfaceGenerator.Tests\ComInterfaceGenerator.Tests.csproj" />
149149
<ProjectExclusions Include="$(MSBuildThisFileDirectory)System.Runtime.InteropServices\tests\ComInterfaceGenerator.Unit.Tests\ComInterfaceGenerator.Unit.Tests.csproj" />
150150
<ProjectExclusions Include="$(MSBuildThisFileDirectory)System.Runtime.InteropServices.JavaScript\tests\JSImportGenerator.UnitTest\JSImportGenerator.Unit.Tests.csproj" />
151+
152+
<!-- Issue: https://github.com/dotnet/runtime/issues/97296 -->
153+
<ProjectExclusions Include="$(MSBuildThisFileDirectory)System.Numerics.Tensors\tests\System.Numerics.Tensors.Tests.csproj" />
154+
<ProjectExclusions Include="$(MSBuildThisFileDirectory)System.Numerics.Tensors\tests\Net8Tests\System.Numerics.Tensors.Net8.Tests.csproj" />
151155
</ItemGroup>
152156

153157
<ItemGroup Condition="'$(TargetOS)' == 'windows' and '$(RuntimeFlavor)' == 'Mono' and '$(RunDisabledMonoTestsOnWindows)' != 'true'">

0 commit comments

Comments
 (0)