Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ public static partial class PlatformDetection
public static bool IsMonoRuntime => Type.GetType("Mono.RuntimeStructs") != null;
public static bool IsNotMonoRuntime => !IsMonoRuntime;
public static bool IsMonoInterpreter => GetIsRunningOnMonoInterpreter();
public static bool IsNotMonoInterpreter => !IsMonoInterpreter;
public static bool IsMonoAOT => Environment.GetEnvironmentVariable("MONO_AOT_MODE") == "aot";
public static bool IsNotMonoAOT => Environment.GetEnvironmentVariable("MONO_AOT_MODE") != "aot";
public static bool IsNativeAot => IsNotMonoRuntime && !IsReflectionEmitSupported;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ public static IEnumerable<object[]> SpanDestinationFunctionsToTest()

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

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

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

[Theory]
[MemberData(nameof(SpanDestinationFunctionsToTest))]
[ActiveIssue("https://github.com/dotnet/runtime/issues/97297")]
public void SpanDestinationFunctions_ValueRange(SpanDestinationDelegate tensorPrimitivesMethod, Func<T, T> expectedMethod)
{
Assert.All(VectorLengthAndIteratedRange(ConvertFromSingle(-100f), ConvertFromSingle(100f), ConvertFromSingle(3f)), arg =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

namespace System.Numerics.Tensors.Tests
{
[ActiveIssue("https://github.com/dotnet/runtime/issues/97295", typeof(PlatformDetection), nameof(PlatformDetection.IsMonoRuntime), nameof(PlatformDetection.IsNotMonoInterpreter))]
public abstract class TensorPrimitivesTests<T> where T : unmanaged, IEquatable<T>
{
#region Abstract Methods Under Test
Expand Down
4 changes: 4 additions & 0 deletions src/libraries/tests.proj
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,10 @@
<ProjectExclusions Include="$(MSBuildThisFileDirectory)System.Runtime.InteropServices\tests\ComInterfaceGenerator.Tests\ComInterfaceGenerator.Tests.csproj" />
<ProjectExclusions Include="$(MSBuildThisFileDirectory)System.Runtime.InteropServices\tests\ComInterfaceGenerator.Unit.Tests\ComInterfaceGenerator.Unit.Tests.csproj" />
<ProjectExclusions Include="$(MSBuildThisFileDirectory)System.Runtime.InteropServices.JavaScript\tests\JSImportGenerator.UnitTest\JSImportGenerator.Unit.Tests.csproj" />

<!-- Issue: https://github.com/dotnet/runtime/issues/97296 -->
<ProjectExclusions Include="$(MSBuildThisFileDirectory)System.Numerics.Tensors\tests\System.Numerics.Tensors.Tests.csproj" />
<ProjectExclusions Include="$(MSBuildThisFileDirectory)System.Numerics.Tensors\tests\Net8Tests\System.Numerics.Tensors.Net8.Tests.csproj" />
</ItemGroup>

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